Horizontal Menu with dropdowns in a <td>

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
childrm
Beginner
Beginner
Posts: 4
Joined: Tue Dec 16, 2003 12:59 am

Horizontal Menu with dropdowns in a <td>

Post by childrm »

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://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
childrm
Beginner
Beginner
Posts: 4
Joined: Tue Dec 16, 2003 12:59 am

Here is a sample link that demonstrates what I am trying...

Post by childrm »

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
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

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
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Re: Horizontal Menu with dropdowns in a <td>

Post by kevin3442 »

Hi Mike,
childrm wrote:...I followed the instructions at:
http://milonic.com/tablemenu.php
You might also have a look at sample9, for relatively-positioned, table-bound menus.

Cheers,

Kevin
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
childrm
Beginner
Beginner
Posts: 4
Joined: Tue Dec 16, 2003 12:59 am

Problem fixed!...I think

Post by childrm »

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://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
Post Reply