Multiple Menus On The Same Page

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
dougd@pshift.com
Beginner
Beginner
Posts: 1
Joined: Sun May 19, 2002 7:24 pm

Multiple Menus On The Same Page

Post by dougd@pshift.com »

What is the correct code to use for placing multiple menus on the same page? I have tried:

</SCRIPT>
<SCRIPT language=JavaScript src="dyn_images_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="dyn_images_array_2.js" type=text/javascript></SCRIPT>

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

but the 2nd one is cancelling out the first for some reason. I know there is a simple answer but I have not found it.
echobeatz666@aol.com
Beginner
Beginner
Posts: 2
Joined: Sun May 19, 2002 7:24 pm

Re: Multiple Menus On The Same Page

Post by echobeatz666@aol.com »

You need to remove the code at the start of the second array.

Where it says
//The following line is critical for menu operation,

-- Andy
akiwitz@web.de
Beginner
Beginner
Posts: 1
Joined: Sun May 19, 2002 7:24 pm

Re: Multiple Menus On The Same Page

Post by akiwitz@web.de »

Thanks Andy...I tried that and it does not cancel the first one out, yet I am still unable to call both menu's --It just calls the first one now.

Matt
laria@optusnet.com.au
Beginner
Beginner
Posts: 1
Joined: Sun May 19, 2002 7:24 pm

Re: Multiple Menus On The Same Page

Post by laria@optusnet.com.au »

I placed all menues in one js file. Do you have a reason (except better overview) to use 2 ? E.g. though I have 10 buttons looking like one menu with 10 items, they are actually 10 menues with one item, because I found no other way to have a broader than a 3-pixel item border which does not hide the button text. This solution worked fine.
/Herbert
john@revjon.com
Beginner
Beginner
Posts: 2
Joined: Sun May 19, 2002 7:23 pm

Re: Multiple Menus On The Same Page

Post by john@revjon.com »

<SCRIPT language=JavaScript src="dyn_images_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="dyn_images_array_2.js" type=text/javascript></SCRIPT>


The trick lies in arranging the above two menus.

For this, You dont cancel.

<SCRIPT language=JavaScript src="dyn_images_array.js" type=text/javascript></SCRIPT>

//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="<script language=javascript>";for(a=1;a<menus.length;a ){mt =" menu" a "=menus[" a "];"}mt ="<\/script>";_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.

For this you have to cancel

<SCRIPT language=JavaScript src="dyn_images_array_2.js" type=text/javascript></SCRIPT>

//menunum=0;menus=new Array();_d=document;function addmenu(){menunum ;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a ){mt =" menu" a "=menus[" a "];"}mt ="<\/script>";_d.write(mt)}

Should work fine.
Post Reply