Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:56

2 menus on same page


Poster: leighbax
Dated: Saturday November 15 2003 - 16:44:46 GMT

Hi,
Is it possible to have 2 separate menus on the same page, i.e. 1 that is common to all pages on a site, and another which only appears on certain pages?
If so does the code all go in the same data file, or do you need to have separate files with different names?
Leigh


Poster: Maz
Dated: Saturday November 15 2003 - 20:47:10 GMT

Not sure if you are saying adding a second menu to some pages or having an alternate menu on some pages.

Where I have 2 menus on some pages I have 2 scripts with different names and different style names for the menu and submenus.

You only need to change the menu-data file names and its style names, the other js files will do the same job.

So your answer is yes, even if you have one different menu on some pages you need to call that menu by a different name from the other.

Regards,
maz


Poster: Hergio
Dated: Sunday November 16 2003 - 6:06:13 GMT

Yea, just have two menu_data files in your page (obviously differently named and containg menus with different names as Maz stated). You should only import the milonic_src and mmenudom files ONCE per page.


Poster: leighbax
Dated: Sunday November 16 2003 - 22:43:09 GMT

Maz and Hergio,
Thanks for your replies, I think I have a clear idea of how to go about it, I will experiment and see if it works, if not I will be back.
This seems a great support forum for a terrific product.
Regards
Leigh