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

IE 7 problem


Poster: barryk
Dated: Tuesday January 9 2007 - 22:03:41 GMT

Having an issue where Milonic Menu is only drawing 1 of 3 menu items in IE 7. It works fine in Firefox 1.5 and 2.0, and also IE 6. Strange thing is that it does work on a sister site just fine. Both sites have 2 Milonic menus on them.

Any help would be greatly appreciated. The code for both sites was generated at the same time, but I can't find a difference to cause the problem.

The site that is not drawing correctly in IE 7 is: http://www.ccca-us.org/sections

The sister site (with an almost identical code base) that works just fine is: http://www.ccca-us.org

Thanks for anyone's input on issues with Milonic and IE 7 !
Barry


Poster: Andy
Dated: Tuesday January 9 2007 - 22:13:12 GMT

Hi,

Looking at your site you've got some embedded menus in there.

However, you've also embedded the subs and this will cause problems. What you need to do is only build the relative main menus in their embedded locations but build the sub menus and menu styles in the own space either in the <HEAD> or just after the <BODY>

There is a document on this here: http://www.milonic.com/tablemenu.php

HTH,
Andy

Hmm.. suggested fix didn't seem to work


Poster: barryk
Dated: Tuesday January 9 2007 - 22:59:34 GMT

Hi Andy,
Thanks for your quick reply. I followed the directions in your post, and tested them in our development environment. I even shut off the 2nd menu, to make things simple for testing purposes. It's still not drawing the menu correctly in IE 7. Would you mind looking again?

Please view the page at: http://ccca.birkey.com/sections

I moved all subs and style stuff to the <head> tag, and only have the main menu in the table cell. Am I missing something?

Thanks,
Barry


Poster: Andy
Dated: Wednesday January 10 2007 - 22:09:28 GMT

Hi,

You need to add a drawMenus(); command after the first set of menus.

Like this:

Code:
<SCRIPT type=text/javascript>
fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=150;
_menuOpenDelay=150;
_subOffsetTop=0;
_subOffsetLeft=-5;

with(menuStyle=new mm_style()){
   onclass="cssmouseon";
   offclass="cssmouseoff";
}

with(subMenuStyle=new mm_style()){
   fontfamily="Verdana, Arial, Helvetica, sans-serif";
   fontsize="10px";
   fontstyle="normal";
   fontweight="bold";
   offbgcolor="#95925f";
   offcolor="#f4efdc";
   onbgcolor="#6f4070";
   oncolor="#ffffff";
   padding=5;
   separatorcolor="#aeaa84";
   separatorsize=1;
}

with(milonic=new menuname("Visit Other Sections")){
   style=subMenuStyle;
aI("text=Alaska Section;url=/sections/default.asp?section_id=34;target=_self;")
aI("text=Allegheny Section;url=/sections/default.asp?section_id=42;target=_self;")
aI("text=Carolinas/Virginias Section;url=/sections/default.asp?section_id=52;target=_self;")
aI("text=Deep South Section;url=/sections/default.asp?section_id=55;target=_self;")
aI("text=Illinois Section;url=/sections/default.asp?section_id=38;target=_self;")
aI("text=Indiana Section;url=/sections/default.asp?section_id=39;target=_self;")
aI("text=Iowa Section;url=/sections/default.asp?section_id=36;target=_self;")
aI("text=Kansas/Nebraska Territory;url=/sections/default.asp?section_id=49;target=_self;")
aI("text=Michigan Section;url=/sections/default.asp?section_id=40;target=_self;")
aI("text=Mid-Atlantic Section;url=/sections/default.asp?section_id=45;target=_self;")
aI("text=Minn-E-Dakotas Section;url=/sections/default.asp?section_id=35;target=_self;")
aI("text=New England Section;url=/sections/default.asp?section_id=44;target=_self;")
aI("text=New York Section;url=/sections/default.asp?section_id=43;target=_self;")
aI("text=Northern Plains Territory;url=/sections/default.asp?section_id=33;target=_self;")
aI("text=Northern Rockies Section;url=/sections/default.asp?section_id=32;target=_self;")
aI("text=Northwest Section;url=/sections/default.asp?section_id=1;target=_self;")
aI("text=Ohio Section;url=/sections/default.asp?section_id=41;target=_self;")
aI("text=Ozark Section;url=/sections/default.asp?section_id=50;target=_self;")
aI("text=Pacific Southwest Section;url=/sections/default.asp?section_id=47;target=_self;")
aI("text=Rocky Mountain Section;url=/sections/default.asp?section_id=48;target=_self;")
aI("text=Sierra Pacific Section;url=/sections/default.asp?section_id=46;target=_self;")
aI("text=Southern Atlantic Section;url=/sections/default.asp?section_id=53;target=_self;")
aI("text=Tennessee/Kentucky Section;url=/sections/default.asp?section_id=51;target=_self;")
aI("text=Texas Section;url=/sections/default.asp?section_id=54;target=_self;")
aI("text=Wisconsin Section;url=/sections/default.asp?section_id=37;target=_self;")

}
drawMenus();
</SCRIPT>



Hope this helps,
Andy


Poster: Andy
Dated: Wednesday January 10 2007 - 22:15:12 GMT

Just realized.

If this doesn't work, can you please try moving the item background image into the menu style. I think this is causing the problem a it's in CSS at the moment.

Alternatively, try adding a menuheight property or an itemheight property. Due to the fact that the image is in CSS the menu isn't given a chance to resize the menu properly.

Cheers,
Andy

Thank you


Poster: barryk
Dated: Wednesday January 10 2007 - 22:29:25 GMT

Andy,
Your solution to add the menuheight item did the trick! Thanks so much for your time...

Barry ;)