search for: nodeiconspan

Displaying 1 result from an estimated 1 matches for "nodeiconspan".

2007 May 06
2
prototype setStyle (background-image) relative url problem
...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({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 shou...