Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:12

2 menus in 2 cells

Poster: e69mt
Dated: Tuesday August 31 2004 - 12:49:17 BST

I am trying to put 2 menus in 2 cells. I am using relaitve position for each.

I tried:
  <td align=right>two<script>menuDisplay(gmobj("Culture"),1);</script></td>

still I get both in the first cell.

Poster: Ruth
Dated: Tuesday August 31 2004 - 16:58:38 BST

Are both these menus to be visible? If that's the case then you should be able to do it but from the code you have I can't figure out what you're doing [though someone more knowledgeable might understand] So, a test page would be really helpful to see all the code, if that's possible.


Poster: kevin3442
Dated: Tuesday August 31 2004 - 17:37:21 BST


You have a couple of issues. First, the way you've tried to display a menu in a cell is not quite correct. Just putting a call to drawMenus() in a table cell is not the right approach (this is actually why both of your menus end up in the same cell). Second, your use of menuDisplay() is incorrect... I see where you were ging logically, but it won't work that way. The menu does not open in the position (i.e., the cell) containing the call to menuDisplay(). In other words, menuDisplay() doe not affect the position of the menu. Rather, menuDisplay() will open the designated menu at a screen location that has already been set through various other processes (maybe you were thinking of the PlaceMenu() function from v3 menus, but it doesn't work that way).

You should have a look at this sample for table-bound menus, and follow the instructions exactly. You also may want to look at some other positioning examples to see if using tables is really the way you want to go; there are lots of alternative approaches that can often make using tables unnecessary.

Hope that helps,