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

Submenu on Top of Menu - Firefox


Poster: fastflagsrt4
Dated: Tuesday February 5 2008 - 15:23:23 GMT

I know its a pretty easy fix.... but I cant find it.
Menu looks fine in IE, but in firefox the submenu opens on top of the main menu.....

Code:
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
position="relative";
orientation="horizontal";
menualign="left";
menuwidth="100%";
itemwidth="100%";
style=XPMainStyle;

Re: Submenu on Top of Menu - Firefox


Poster: Ruth
Dated: Tuesday February 5 2008 - 23:06:02 GMT

Hi,

I am going to have to have the url to see the page, and download and test it if I can't figure out from looking what's going on. It's relatively positioned so I'm going to guess that it's some css for the div/table in which the menu has been placed.

Ruth

Re: Submenu on Top of Menu - Firefox


Poster: fastflagsrt4
Dated: Wednesday February 6 2008 - 14:37:18 GMT

Hi Ruth,

URL is http://www.ashg.org/testing/

-Ray

Re: Submenu on Top of Menu - Firefox


Poster: Ruth
Dated: Wednesday February 6 2008 - 21:37:29 GMT

Hi,

Add a menuheight and it will fix the issue. I think there is something on your site causing this, because the table example on Milonic.com does not do what is happening on your site.

Having fixed that, there are some issues you need to also fix as regards placing the menu in a table, it is placed incorrectly.

You need to split out the main menu into its own file and add a drawmenus at the end of that file. Save it as embed_main, or main_menu or whatever you want to call it. Then, you can either put all the other menus back into the menu_data.js file along with the styles, or leave them in the file they are in now. Call the menu_data.js file, and if you leave it separate, also the menu_selections file up where you now just have the menu data file. In the table, call only the main menu. The reason for this is that the styles and submenus must be already built when the main menu is called, so they have to be called where you now have the menu_data.js call.

YOu can of course use the newest method which is to put everything back in the menu_data.js file, add buildAfterLoad=true; up at the top by the subOffsets etc. and then call ALL the files, milonic_src.js, mmenudom, mmenuns4 and menu_data file in the table cell. See the post at the top of the forum about placing the menu in a table/div.

I've reported the problem to Milonic about the offset issue in FF. You shouldn't have to declare a menuheight, but for some reason if it isn't declared ff does what you noted.

Also, you need to put the images for the menu on your site, not link to the ones on Milonic.com

Ruth