Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Onmouseover

Status
Not open for further replies.

shams123

Programmer
Jan 27, 2006
81
MY
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
 
The latter is interpreted as the c: on local file system which is not what you meant or anything to do with the drive on the server. The virtual directory is to shield the info on the server.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top