2 menus per page

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Twill
Advanced
Advanced
Posts: 16
Joined: Tue Jul 08, 2003 6:47 am

2 menus per page

Post by Twill »

OK, so I am using v5 and can't figure out how to get 2 menus running at relative positions imbedded inside tables to run on the same page.

I have one horizontal and one vertical menu running in 2 different nested tables. I cant figure out how to make them both work.

did I just miss the section that said it?
tommcmur
Advanced
Advanced
Posts: 27
Joined: Tue Jul 08, 2003 7:46 pm

Multiple menus

Post by tommcmur »

I have the same problem with RC2. The menus appear on refresh (most of the time). I have gone back to beta 1.13 and everything appears to work; at least better than RC1 or RC2 right now.
oriel
Beginner
Beginner
Posts: 2
Joined: Thu Jul 10, 2003 1:39 pm

yes you can

Post by oriel »

I just managed to do exactly that with the latest version 3.3.9

Got two menus on one page, using one mmenu.js file and two menu_array.js files.

Code: Select all

<SCRIPT language=JavaScript src="../t/c/menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="../t/c/mmenu.js" type=text/javascript></SCRIPT>
<table width="100%" border="2">
  <tr>
    <td height="218">
		<script language=JavaScript>PlaceMenu("mainmenu")</script>
	</td>
  </tr>
  <tr>
    <td height="146">
		<script language=JavaScript>PlaceMenu("albummenu")</script>
	</td>
  </tr>
</table>
Make shure that you comment out the first line of code in the second menu_array.js file, it instructs you to do that in the file.
If you do this in the first file (which in my case is the src="../t/c/menu_array.js" file) than it wont work.
Also make sure the menus are set to display at different top and left positions if you dont use the PlaceMenu() command.

hope it helps. After a lot of faffing I had to make a test page to make it work. Here it is http://www.blue-mango.co.uk/album/menutest.php

8O
tommcmur
Advanced
Advanced
Posts: 27
Joined: Tue Jul 08, 2003 7:46 pm

thanks for the input

Post by tommcmur »

I want to use the latest version for compatibility issues. RC2 now allows more menus if you get the latest file from the site. However, when the menus are created Netscape 7 doesn't work well. Menus begin to reorder and duplicate.

I had used the placemenu command as well, but Mac's don't like that command at all; this is the reason I went with version 5 of the menus.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: yes you can

Post by John »

oriel wrote:I just managed to do exactly that with the latest version 3.3.9
Just FYI, the latest version of the 3-system is 3.5.15. You are, literally, 20-some levels down.
John
Post Reply