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

Mac IE submenu offset problems!!


Poster: brianika
Dated: Tuesday December 2 2003 - 23:09:46 GMT

Help!

This menu works great everywhere but on a MAC in Internet Explorer. The submenus are appearing approx. 100 pixels to the right of where they are supposed to be. I've tried everything!

http://www.continentalclay.com/default.aspx

The script in the head tags is as follows:

Code:
<head>
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>   
<script   language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");      
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");
</script>
</head>


The script in the td is as follows:

Code:
<td height="18" align="left" background="images/navbg.gif">
<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>
<script>
with(milonic=new menuname("Main Menu")){
style=menuStyle;
alwaysvisible=1;
orientation="horizontal";
position="relative"
aI("text=&nbsp;SUPPORT &nbsp;&nbsp;;showmenu=SUPPORT;");
aI("text=&nbsp;CUSTOMER SERVICE &nbsp;&nbsp;;showmenu=CUSTOMER;");
aI("text=&nbsp;CONTACT US &nbsp;&nbsp;;showmenu=CONTACT;");
aI("text=&nbsp;ABOUT US &nbsp;&nbsp;;showmenu=ABOUT;");
aI("text=&nbsp;SITE MAP &nbsp;&nbsp;;url=Sitemap.aspx;status=Site Map;");
aI("text=&nbsp;HOME &nbsp;&nbsp;;url=default.aspx;status=Back To Home Page;");
}
drawMenus();
</script></td>


Any help would be appreciated!!

Here is the code for my .js too, if that helps

Code:
_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_followSpeed=5                // Follow scrolling speed
_followRate=40                // Follow scrolling Rate
_subOffsetTop=10              // Sub menu top offset
_subOffsetLeft=-10            // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x



with(menuStyle=new mm_style()){
onbgcolor="#CCFFFF";
oncolor="#333333";
offbgcolor="#99CCCC";
offcolor="#333333";
itemheight="16";
separatorcolor="#000000";
separatorsize="1";
padding=2;
fontsize="70%";
fontstyle="normal";
fontweight="bold";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="#333333";
pagebgcolor="#CCFFFF";
}

with(subStyle=new copyOf(menuStyle)){
bordercolor="#000000";
borderstyle="solid";
borderwidth=1;
}

with(milonic=new menuname("SUPPORT")){
style=subStyle;
aI("text=SAFETY ;url=Safety.aspx;status=SAFETY;");
aI("text=CLAY INFO ;url=Clay_Info.aspx;status=CLAY INFO;");
aI("text=GLAZE INFO ;url=Glaze_Info.aspx;status=GLAZE INFO;");
aI("text=KILN INFO ;url=Kilns_Info.aspx;status=KILN INFO;");
aI("text=WHEEL/KILN REPAIR ;url=Repair.aspx;status=WHEEL/KILN REPAIR;");
aI("text=TECHNICAL NEWS ;url=Technical_News.aspx;status=TECHNICAL NEWS;");
aI("text=FAQ ;url=faqs.aspx;status=FAQ;");
aI("text=TIPS AND HINTS ;url=Tips_Hints.aspx;status=TIPS AND HINTS;");
}

with(milonic=new menuname("CUSTOMER")){
style=subStyle;
aI("text=ORDER INFO ;url=ordering.aspx;status=ORDER INFO;");
aI("text=PRICING/PAYMENT ;url=payment_methods.aspx;status=PRICING/PAYMENT;");
aI("text=SHIPPING ;url=Shipping.aspx;status=SHIPPING;");
aI("text=DAMAGED/RETURNS ;url=Damaged.aspx;status=DAMAGED/RETURNS;");
aI("text=GIFT CERTIFICATES ;url=Gift_Certificates.aspx;status=GIFT CERTIFICATES;");
}

with(milonic=new menuname("CONTACT")){
style=subStyle;
aI("text=CONTACT INFO ;url=ContactUs.aspx;status=CONTACT INFO;");
aI("text=REQUEST CATALOG ;url=requestcatalog.aspx;status=REQUEST CATALOG;");
aI("text=MAP/DIRECTIONS ;url=Map_Directions_s.aspx;status=MAP/DIRECTIONS;");
}



with(milonic=new menuname("ABOUT")){
style=subStyle;
aI("text=QUALITY STATEMENT ;url=Quality.aspx;status=QUALITY STATEMENT;");
aI("text=T-SHIRTS, BAGS, ETC. ;url=Category.aspx?CategoryId=387;status=T-SHIRTS, BAGS, ETC.;");
}

drawMenus();


THANKS!!


Poster: John
Dated: Wednesday December 3 2003 - 2:59:29 GMT

We're fighting exactly the same thing in http://www.milonic.com/forum/viewtopic.php?t=3221. So far, no answer.


Poster: brianika
Dated: Wednesday December 3 2003 - 5:07:33 GMT

The thing is, thanks for your empathy by the way :),
it should work. There is a table-bound menu from Milonic, and that one works a lot better than mine works (on a mac in ie). And I've combed over both codes and I can't find anything that is different.

uggh!!

Here is the link to the menu from milonic that works...

http://www.milonic.com/menusample.php?sampleid=9

thanks!


Poster: henrik __at__ itide.dk
Dated: Wednesday December 3 2003 - 7:49:25 GMT

The submenus are called before mainmenu in

http://www.milonic.com/menusample.php?sampleid=9

So two drawMenus() calls

Perhaps you will get the problem in

http://www.milonic.com/forum/viewtopic.php?t=3144

Hope it helps

Henrik


Poster: brianika
Dated: Wednesday December 3 2003 - 16:36:13 GMT

I don't understand -
Remove one of the draw menus commands? In the example from Milonic, both are there.

I will give it a try...


Poster: henrik __at__ itide.dk
Dated: Thursday December 4 2003 - 7:38:31 GMT

No you should not remove one of the drawmenu commands. It should work with two calls. That is the trick to get the menu to work in MAC IE.

First the submenus in the headsection and then mainmenu in the bodysection. That worked for me :-)

Henrik