Hi,
I have a menu which changes images on mouse roll over. It works fine if I give in the path like this.src='images/xx.gif'
Now I want to use the menu in all the pages and some pages are not in the root folder, e.g a subfolder called products is a subfolder. To access the images folder from here I would need to access by this.src='../images/xx.gif'
Now since the menu is the same, I have a server side script that generates the complete path like 'c:/..../images/xx.gif' and can be called from any folder or subfolder.
The problem is if I try to use the script as this.src='c:/.../images/xx.gif', everytime I get a broken image icon. whereas the image physically exists there.
i would appreciate if someone could point out what am I missing.
Thanks
I have a menu which changes images on mouse roll over. It works fine if I give in the path like this.src='images/xx.gif'
Now I want to use the menu in all the pages and some pages are not in the root folder, e.g a subfolder called products is a subfolder. To access the images folder from here I would need to access by this.src='../images/xx.gif'
Now since the menu is the same, I have a server side script that generates the complete path like 'c:/..../images/xx.gif' and can be called from any folder or subfolder.
The problem is if I try to use the script as this.src='c:/.../images/xx.gif', everytime I get a broken image icon. whereas the image physically exists there.
i would appreciate if someone could point out what am I missing.
Thanks