I wouldn't had posted here but it seems the Site Creation board didn't make the transition. God, I hate linear forums.
Anyway, let's say for example I have five menus named "menu1", "menu2", etc. In Netscape (which supports layers, unlike IE...) each menu would be in a layer and to close them all in JavaScript all I need do is something like this:
Now, since for some reason IE can never be normal, for the menus to work in it I'd have to use DIV tags. My question: is there a simple way to reference DIVs like there is to reference layers (like the snippet above)?
Anyway, let's say for example I have five menus named "menu1", "menu2", etc. In Netscape (which supports layers, unlike IE...) each menu would be in a layer and to close them all in JavaScript all I need do is something like this:
Code:
for(var i=1;i<=5;i++){
document.layers["menu"+i].visibility="hide";
}
Now, since for some reason IE can never be normal, for the menus to work in it I'd have to use DIV tags. My question: is there a simple way to reference DIVs like there is to reference layers (like the snippet above)?