Is the javascript file within a different directory than your site and/or images? Even though the webpage may be on the root level, if the javascript is within a folder, the relative path would start from there.
Ex:
Your Javascript file: "mysite.com/js/something.j
Your image file: "mysite.com/img/someimage.
If you want to reference the image within the javascript using a relative path, it should be something like "../img/someimage.bmp", where the "../" should tell it to go back one root level. Otherwise, "img/someimage.bmp" would be interpreted as "mysite.com/js/img/someima
Main Topics
Browse All Topics





by: hieloPosted on 2008-03-28 at 20:21:11ID: 21235407
>>and in IE it just shows the image placeholder
someimage. gif
.gif"; s.gif";
That means you are not specifying the right path.
>>Do I need to use a full qualified name for source
No, but you need to specify the correct PATH to the image. Most likely the path to your images is:
http://yousite.com/images/
in which case the correct path would be:
var plusImg = "/images/dhtlmgoodies_plus
var minusImg = "/images/dhtlmgoodies_minu
which basically boils down to the full path minus the domain