Displaying 1 result from an estimated 1 matches for "node_icons".
2007 May 06
2
prototype setStyle (background-image) relative url problem
...explain this one! When I try to use a setStyle call and set
the backgroundImage property of an element, I''m having some problems
using a relative URL.
my directory structure is this:
SERVER_ROOT/context/javascript/tree.js
SERVER_ROOT/context/style/tree/tree.css
SERVER_ROOT/context/images/node_icons/open.png
SERVER_ROOT/context/images/node_icons/closed.png
in my tree.css file i set background image using the relative
url: ../../images/node_icons/open.png
this works fine. However in my tree.js file I use the prototype
setStyle call and use the following:
nodeIconSpan.setStyle({backgroundImag...