I need some help doing this page.
I'm trying to do a navigation bar, where when the user clicks one of the items, it expands with a menu, (there are 4 items that expand 4 different menus). I also need a link to show and hide all the menus. Something like this
So anyone have an idea how to do this with javascript?
if ( menu item clicked ) {
if (menu closed) {
expand menu
}
if (menu opened) {
close menu
}
}
if ( link expand clicked ) {
set all lists to display:block;
}
if ( link collapse clicked ) {
set all lists to display: none;
}Just the basic idea, here is the page I'm doing.
Any help would be appreciated.
Aqua-Soft Forums