View Full Version : Problem with rollover image in menu

12-12-2005, 08:06 PM
Please help...

My menu script was working fine but now, because I am using the menu as part of a template, it is necessary for me to use the full path to for the images in my menu to show up. However, when I use the fullpath - only one of the images displays.

What I had originally that worked fine:

Menu1=new Array("rollover:images/home2.gif:images/home1.gif","index.htm","",0,28,55);
What I changed it because I needed to show the full path - BUT it only displays one of the two rollover images:

Menu1=new Array("rollover:http://www.mysite.com/images/home2.gif:http://www.mysite.com/images/home1.gif","index.htm","",0,28,55);
How do I get both images to show up?


12-13-2005, 05:52 AM
There are several things you can try, it is the : in http:// that throws things off. Here are two I can think of off the top of my head:

Simplest and best, if it works. The preceding / for the image directory means to start looking from the root of the domain (will not work locally, only live):

Menu1=new Array("rollover:/images/home2.gif:/images/home1.gif","index.htm","",0,28,55);

I've seen this work as well, not sure why:

Menu1=new Array("rollover:www.mysite.com/images/home2.gif:www.mysite.com/images/home1.gif","index.htm","",0,28,55);