Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Sliding menu that's IE and Netscape friendly

    Hi,

    I found an IE friendly menu which I can modify to my needs however it isn't Netscape friendly.

    To view the menu please click here:
    http://www.chalcedony.com/javascript.../script13.html

    To view the source code please cick here:
    http://www.chalcedony.com/javascript...ript10.13.html

    My goal is to have a list of items that when clicked on will shift other items down and reveal a description. When done reading the description they can click in the link again and it'll shift the other list items back up.

    Do you have any suggestions on how to make this Netscape friendly or do you know of any programming that would allow for what I'm asking for.

    Please note that the project I'm working on will not allow external javascript files to be used.

    Your assistance is greatly appreciated.

    Thanks
    Tanya

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think if you replace toggleMenu() with the following, it should work in any browser that supports DOM.
    Code:
    function toggleMenu(currMenu) {			
     currMenu = document.getElementById(currMenu);
     if(currMenu.style.display == "block") {
      currMenu.style.display = "none";
     }
     else {
      currMenu.style.display = "block";
     }
     return false;
    }
    Hope that helps,
    Sadiq.


  •  

    Posting Permissions

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