I'm not sure, but you could be dealing with a browser issue. I think you might find the script will work in Netscape but not MSIE (or the other way round) as they handle the document object model differently.
It's just when you code for hiding and showing style sheets elements you code:
Code:
if (document.layers) { //this is for Netscape
visible = 'show';
hidden = 'hide';
} else if (document.all) { //this is for MSIE
visible = 'visible';
hidden = 'hidden';
}
function barTog(menu) {
if (document.layers) {
menu1 = document.layers[menu];
} else if (document.all) {
menu1 = document.all(menu).style
}
if (menu1.visibility == visible) {
menu1.visibility = hidden;
}
else {
menu1.visibility = visible;
}
if (lastMenu != menu) {
closeMenus(lastMenu);
}
lastMenu = menu;
}
Just a thought anyway....
zing
Enter your message below
Sign in or Join us (it's free).