Mac IE submenu offset problems!!

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
brianika
Beginner
Beginner
Posts: 3
Joined: Wed Dec 03, 2003 12:02 am

Mac IE submenu offset problems!!

Post by brianika »

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: Select all

<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: Select all

<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: Select all

_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!!
Last edited by brianika on Wed Dec 03, 2003 6:15 am, edited 2 times in total.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

We're fighting exactly the same thing in http://milonic.com/forum/viewtopic.php?t=3221. So far, no answer.
John
brianika
Beginner
Beginner
Posts: 3
Joined: Wed Dec 03, 2003 12:02 am

Post by brianika »

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://milonic.com/menusample.php?sampleid=9

thanks!
henrik@itide.dk
Super Advanced
Super Advanced
Posts: 51
Joined: Thu Feb 27, 2003 9:47 am
Location: Denmark

Post by henrik@itide.dk »

The submenus are called before mainmenu in

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

So two drawMenus() calls

Perhaps you will get the problem in

viewtopic.php?t=3144

Hope it helps

Henrik
brianika
Beginner
Beginner
Posts: 3
Joined: Wed Dec 03, 2003 12:02 am

Post by brianika »

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...
henrik@itide.dk
Super Advanced
Super Advanced
Posts: 51
Joined: Thu Feb 27, 2003 9:47 am
Location: Denmark

Post by henrik@itide.dk »

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