Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:25
2 menus per page
Poster: Twill
Dated: Friday July 11 2003 - 8:26:59 BST
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?
Multiple menus
Poster: tommcmur
Dated: Friday July 11 2003 - 14:35:51 BST
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.
yes you can
Poster: oriel
Dated: Friday July 11 2003 - 22:26:06 BST
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:
<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>
<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
thanks for the input
Poster: tommcmur
Dated: Friday July 11 2003 - 23:24:53 BST
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.
Re: yes you can
Poster: John
Dated: Monday July 14 2003 - 17:10:30 BST
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.