...

View Full Version : Sliding menu that's IE and Netscape friendly



riemant
06-11-2004, 04:49 PM
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/javascript3e/scripts/chap10/script13.html

To view the source code please cick here:
http://www.chalcedony.com/javascript3e/scripts/script10.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

sad69
06-11-2004, 08:19 PM
I think if you replace toggleMenu() with the following, it should work in any browser that supports DOM.


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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum