Trying to get stacked horizontal submenus

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
dguillory
Beginner
Beginner
Posts: 1
Joined: Thu Apr 08, 2004 10:24 pm

Trying to get stacked horizontal submenus

Post by dguillory »

I'm in the middle of developing a site with horizontal main and submenus. The basic scheme after rolling over a main menu item is:

Main1 Main2 Main3 Main4
Sub1 Sub2 Sub3 Sub 4

Some of the main menu items will have more sub items than can fit on a single row, and I'm not a big fan of scrolling submenus. I'm trying to get those long submenu lists to stack, like this:

Main1 Main2 Main3 Main4
Sub1 Sub2 Sub3 Sub4 Sub5 Sub6
Sub7 Sub8 Sub9

If anyone has any suggestions on the best way to handle this, I'm all ears. I tried just playing with the variables of the submenu, but couldn't get anything to work that way. I'd be fine with creating a distinct submenu for each row, but I can't figure out how to show two submenus at once. I've tried playing with the menuDisplay function, but no luck yet.

While I'm on the subject, there's another piece of functionality that I'm looking to use in this menu. Namely, I want to make the submenu of the section you are currently in to be persistent. I'm using pagematch to highlight the main menu item for the section I'm in, and the sub menu item for the page I'm currently on, and that's working fine. What I'm looking for is to have the sub menu for the section I'm in be visible from the time the page loads, and stay visible unless I'm currently mousing over a different main menu item.

Any thoughts on either topic is greatly appreciated.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

In your global style definded for the submenu you would add

Code: Select all

keepalive=1;
So any submenus that used whichever style to which you add that would remain open until you moved over another menu. Sorry, I can't help with the other. I don't think it's possible, I believe what happens if the menu is too long is that each separate item wraps, whereas you want it to shift down at say pixel 560 and put everything after that on the next 'line'. I know some have asked for that feature and a couple of others but don't know if it is one of those on the list.

Ruth
Post Reply