Results 1 to 2 of 2

Thread: Problem with rollover image in menu

  1. #1
    Join Date
    Dec 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem with rollover image in menu

    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:

    Code:
    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:
    Code:
    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?


  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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):

    Code:
    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:

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •