PDA

View Full Version : How to use the same submenus with two different menus



samz
02-12-2010, 06:25 PM
1) Script Title: AnyLink CSS Menu v2.0

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm

3) Describe problem: I have a menu that is displayed twice in my page (top-menu and bottom-menu ).
So i want to use the same submenus DIVs for each menu.

I've tried a lot of things, but i always get the same problem :

When mousing over the anchors (top or bottom), no problem, the submenus are visible and appear in the right place. But only the bottom menu is OK when mousing over the submenus : The submenus displayed by mousing over the top-menu disappear as if i was mousing somewhere else in the page. And i get javascript errors "menu is undefined" ( theese errors come from the "mouseover" event of the 'setupmenu' function.)

I think this is because when mousing over one "top-submenu", the event of the corresponding "bottom-submenu" mouseout hides this DIV submenu (i don't know if i am very clear, sorry for my bad english...:) )

I have tried to set two anchor classes and init them separately but nothing works...

Has somebody any idea on how to do this?

Thx!

ddadmin
02-13-2010, 09:27 AM
There's no quick way to assign a drop down menu to multiple anchors at the moment unfortunately. This may be something I'll add to the script the next time it's updated. In the meantime, Flex Menu (http://www.dynamicdrive.com/dynamicindex1/flexdropdown.htm) does support this.