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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:32

Two menus on one page


Poster: Flash_harry
Dated: Friday April 25 2003 - 10:16:24 BST

Hello there,

I need to have two sepertae menus on one page as the milonic pagehttp://www.milonic.co.uk/menu/

Here there is the horizontalmenu plus the foating menu at the side.

I downloaded both Zips but when I put in the two menus only one works, what extra thing do I need to do to make this work?

I have this in my body tags

<SCRIPT language=JavaScript src="menu_array.js" type=text/javascript></SCRIPT>
<script language=JavaScript src="menu_array2.js" type=text/javascript></script>
<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>

Any help is great

Cheers

Found the problem


Poster: Flash_harry
Dated: Friday April 25 2003 - 11:45:17 BST

Ok I found the problem.

You must only have one set of this line

//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. If you have more than one menu_array.js file rem out this line in subsequent files
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<scr"+"ipt language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/scr"+"ipt>";_d.write(mt)}
//Please leave the above line intact. The above also needs to be enabled if it not already enabled unless this file is part of a multi pack.


You can load any number of menus but delete the above from any additional ones. Just have it in the first loaded.

Cheers

Flash


Poster: kevin3442
Dated: Saturday April 26 2003 - 5:39:53 BST

Hi Flash,

Just a note: You can also define both main menus in the same menu_array.js file.

Kevin