A horizontal dropdown menu script. You can
include any HTML code inside the DIVs of each dropdown, and assign them a different style if desired. In
NS6+ only the menu items
are displayed, the dropdown does not work.
if((drop1state==1)|(drop2state==1)|(drop3state==1)|(drop4state==1)
|(drop5state==1)|(drop6state==1)|(drop7state==1))
{
if (ie){
dropdown1.style.visibility="hidden";
dropdown2.style.visibility="hidden";
dropdown3.style.visibility="hidden";
dropdown4.style.visibility="hidden";
dropdown5.style.visibility="hidden";
dropdown6.style.visibility="hidden"; dropdown7.style.visibility="hidden" //
no semicolon at the end of the last line
}
else if (n){
document.dropdown1.visibility="hide";
document.dropdown2.visibility="hide";
document.dropdown3.visibility="hide";
document.dropdown4.visibility="hide";
document.dropdown5.visibility="hide";
document.dropdown6.visibility="hide"; document.dropdown7.visibility="hide" //
no semicolon at the end of the last line
}
drop1state=0; drop2state=0; drop3state=0; drop4state=0; drop5state=0; drop6state=0;
drop7state=0; etc.
8) Define where the menu.js file is located in the <HEAD>
section: