Getting 2 menus on 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
webmaster@hannabery.com
Beginner
Beginner
Posts: 1
Joined: Sun May 19, 2002 7:24 pm

Getting 2 menus on same page

Post by webmaster@hannabery.com »

Can anyone help me to get 2 menus to work like on this websites homepage?

I have a main horizontal menu accross the top, which works fine. I want to add a vertical menu on left side that scrolls down the page, just like this site uses but nothing I do works.

This is my temporary page:
http://www.hannabery.com/temp/test2menu.shtml

Can someone explain the proper procedure?

Thanks,
Scott
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Getting 2 menus on same page

Post by John »

Here's how Andy did it...

<SCRIPT language=JavaScript src="/menu/sidemenu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="/menu/mmenu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="/menu/mmenu.js" type=text/javascript></SCRIPT>

Just set up another menu_array (different name, of course).


John
sgray@sunrisesw.com
Beginner
Beginner
Posts: 4
Joined: Sun May 19, 2002 7:23 pm

Re: Getting 2 menus on same page

Post by sgray@sunrisesw.com »

I have done this on my site but have noticed a bug when using Netscape 6.2 and layers.. be interested to know if it works ok for you..
Derek

I have the same problem!

Post by Derek »

I am having the EXACT same problem. I have placed the proper code to have both a horizontal and vertical menu and I can't get them BOTH to load. Only the one that is called first loads. I can get them to each work by themselves by changing the order that I call them, cut CANNOT get them to work at the same time. (Using IE5). Any help would be greatly appreciated.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

This is probably due to the fact that you have not removed the line of code that sets up the menus in the second array.

What is happening is that your second menu is wiping out the first menu.

You need to remove the line of code that start with

menunum=0;menus=new Array();_d=docum . . .

In the second array.

Cheers
ImranK

Post by ImranK »

Thaks alot Andy. I was having the same problem and your feedback solved it.
Post Reply