Results 1 to 3 of 3

Thread: AnyLink Drop Down Menu background colour change works in all browsers, except IE

  1. #1
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AnyLink Drop Down Menu background colour change works in all browsers, except IE

    www.mouneeb.com/eller/

    I've implemented the script. I've checked it in Firefox, Opera and IE. It works great in both FF and Opera, however, the Mouse Over background colour doesn't change in IE.

    Any help would be greatly appreciated.

  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

    IE will not do :hover on anything that isn't a link. Because of this, to get the hover effect in IE, you will need to rewrite this and similar:

    Code:
    menu1[0]='<a onClick=document.getElementById("middle").src="profile.php?item=1";document.getElementById("right").src="blank.php";document.getElementById("bottom").src="blank.php";>Experience</a>'
    to:

    Code:
    menu1[0]='<a href="#" onClick=document.getElementById("middle").src="profile.php?item=1";document.getElementById("right").src="blank.php";document.getElementById("bottom").src="blank.php";>Experience</a>'
    Ordinarily, you would also need to add 'return false' to prevent the page from going to '#' but, I think that the script takes care of that for you, if not, add it like so:

    Code:
    menu1[0]='<a href="#" onClick="document.getElementById(\'middle\').src=\'profile.php?item=1\';document.getElementById(\'right\').src=\'blank.php\';document.getElementById(\'bottom\').src=\'blank.php\';return false;">Experience</a>'
    - John
    ________________________

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

  3. #3
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    PERFECT!!!!

    THANK YOU! Site is now completed.

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
  •