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
Two menus on one page
-
- Advanced
- Posts: 11
- Joined: Wed Apr 23, 2003 4:30 pm
Found the problem
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
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