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:08
Horizontal Menu with dropdowns in a <td>
Poster: childrm
Dated: Friday September 24 2004 - 20:07:53 BST
I need to be able to place the horizontal menu in a <td> inside a table that is centered and about 750 pixels wide (Lots of room for menus).
It seems to float to the top left.
I followed the instructions at:
http://www.milonic.com/tablemenu.php
But this was for verticle menus. I also checked out the faqs but could find anything specific.
I'm fairly new to this menu but I would love to purchase it if only I can figure out how to use it.
Thanks for any help.
Mike
Here is a sample link that demonstrates what I am trying...
Poster: childrm
Dated: Friday September 24 2004 - 21:32:39 BST
Here is a link to the problem that I am encountering. I need to position the menu inside the right cell. Any help would greatly be appreciated!
http://www.shmc.org/sample.htm
mike
Poster: Maz
Dated: Friday September 24 2004 - 22:16:02 BST
I see a centered menu in the horizontal lines, but what I don't see and you maybe need is either menualign=center; or screenposition=center;
I think menualign is normally used in a table, but I've been absent and not sure if anything changed.
Wait a minute, I just read the page, so you have the menu items in <td> then you have the same items again in menu_data.js with top & left positioning, remove those from menu_data to remove the top left menu.
You have repeated the menu items.
maz
Re: Horizontal Menu with dropdowns in a <td>
Poster: kevin3442
Dated: Saturday September 25 2004 - 0:40:01 BST
Hi Mike,
childrm wrote:
...I followed the instructions at:
http://www.milonic.com/tablemenu.php
http://www.milonic.com/tablemenu.php
You might also have a look at sample9, for relatively-positioned, table-bound menus.
Cheers,
Kevin
Poster: Ruth
Dated: Saturday September 25 2004 - 3:07:20 BST
You have left the main menu which you've put into the table inside the menu_data.js file, also. That's why it's coming up twice, the program is reading it in the table and in the menu_data file. Just remove it from the file and the second one will disappear.
As to the other item. Do you want the menu all the way to the right? You said you wanted to position it in the right cell, you have it there. Could you be a little more descriptive as to how you want it to look? Thanks.
Ruth
Problem fixed!...I think
Poster: childrm
Dated: Saturday September 25 2004 - 3:21:44 BST
Thanks. Now it is working a-ok. What I did was follow the Mac problem instructions. For anybody who is interested or is having the same problem, here is what I did:
1)Cut the following code from the menu_data.js file:
<script language=JavaScript type=text/javascript>
with(milonic=new menuname("Main Menu")){
style=menuStyle;
alwaysvisible=1;
orientation="horizontal";
position="relative";
aI("text=Home;url=http://www.milonic.com/;");
aI("text=Menu Samples;showmenu=Samples;");
aI("text=Milonic;showmenu=Milonic;");
aI("text=Partners;showmenu=Partners;");
aI("text=Links;showmenu=Links;");
aI("text=My Milonic;showmenu=My Milonic;");
}
drawMenus()
</script>
2)Pasted it in between the <td>here</td> tags where I wanted the menu to appear. I suppose you could pull it from an include file as well. I haven’t tried that yet.
3)From here I can position the menu with my <td align bottom, middle, top, etc>
4)It seems to work on all the browsers I have which are the latest in IE, Netscape, Mozilla, etc. but I don’t have a Mac or older browsers.
I still would appreciate any suggestions you experts would have on refinement if any is needed. It has been a great help. You can check it out now at:
http://www.shmc.org/sample.htm
-mike