How do I include more than one menu on one page?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Bengt Stridh
Beginner
Beginner
Posts: 2
Joined: Sat Nov 08, 2003 7:36 pm
Location: Västerås, Sweden

How do I include more than one menu on one page?

Post by Bengt Stridh »

According FAQ it is possible: "Absolutely, The menu has been designed to allow for an unlimited number of master menus."

But how is this done? It would be nice to get an explanation and to see an example code. Any help on this topic is welcome!
/Bengt Stridh
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Simply define as many menus as you want with the usual menu definition scheme. The only 'trick' is to make sure each menu has a unique name (and, if necessary, a unique style definition to go along with it).
John
com2
Beginner
Beginner
Posts: 6
Joined: Mon Nov 10, 2003 5:11 pm

Post by com2 »

Could it be that this works only for ablsolute screen locations, not for relative. I try to incorporate two menus relatively to html table cells. I guess there is no way to include the function drawmenus() twice in two different cells to produce two relative menus in these cells?

Reply did not work, so I will just add the following to my message.

I discovered that you need to define a new main menu with different stylename in order to use the function drawmenus() twice. I did that and it works fine.
Post Reply