Displaying 1 result from an estimated 1 matches for "1nodeopen".
2007 May 06
2
prototype setStyle (background-image) relative url problem
...ode_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({backgroundImage:''url(../images/node_icons/
1nodeopen.gif)''});
this doesn''t work, it appears that the browser attempts to load from
SERVER_ROOT/images/node_icons/1nodeopen.gif
which is wrong (no ''context'').
I thought that maybe the image should be relative to the original css
file but that doesn''t work e...