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:36
Submenu display issue on Mac IE 5.2
Poster: Doubledown
Dated: Thursday March 25 2004 - 23:54:46 GMT
I'm having a problem with how the last items of my submenus are showing up on a Mac with IE 5.2. It is like it disregards the padding for the last item in each? Take a look: http://www.telusplanet.net/public/tmotz/lcsr/topmenu/sample.html. Also, here is the code for the menu_data.js file, if that will help:
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
_subOffsetTop=0 // Sub menu top offset
_subOffsetLeft=0 // Sub menu left offset
with(Mainmenu=new mm_style()){
onbgcolor="#4F8EB6";
oncolor="#ffffff";
offbgcolor="#DCE9F0";
offcolor="#515151";
bordercolor="#FFFFFF";
borderstyle="solid";
borderwidth=0;
separatorcolor="#FFFFFF";
separatorsize="0";
padding=0;
fontsize="75%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#000000";
headerbgcolor="#ffffff";
subimagepadding="0";
}
with(Submenu=new mm_style()){
oncolor="#C75100";
offcolor="#000000";
bordercolor="#FFFFFF";
borderstyle="solid";
borderwidth=2;
separatorcolor="#FFFFFF";
separatorsize="2";
padding=3;
fontsize="8pt";
fontstyle="normal";
fontweight="normal";
fontfamily="Arial, Helvetica";
menubgimage="bg.gif";
overfilter="gradientwipe(wipestyle=1, motion=Forward, duration=0.5);Alpha(opacity=100);";
outfilter="gradientwipe(wipestyle=1, motion=Reverse, duration=0.5)";
}
with(milonic=new menuname("Main Menu")){
style=Mainmenu;
top=8;
left=324;
alwaysvisible=1;
orientation="horizontal";
aI("showmenu=PracticeAreas;image=topnav_practiceareas1.gif;overimage=topnav_practiceareas2.gif;");
aI("showmenu=Firm;image=topnav_firm1.gif;overimage=topnav_firm2.gif;");
aI("showmenu=Attorneys;image=topnav_attorneys1.gif;overimage=topnav_attorneys2.gif;");
aI("showmenu=Offices;image=topnav_offices1.gif;overimage=topnav_offices2.gif;");
aI("url=##;image=topnav_contact1.gif;overimage=topnav_contact2.gif;");
aI("url=##;image=topnav_home1.gif;overimage=topnav_home2.gif;");
}
with(milonic=new menuname("PracticeAreas")){
style=Submenu;
aI("text=Overview;url=##;image=subspacer.gif;");
aI("text=Securities;url=##;image=subspacer.gif;");
aI("text=Insurance;url=##;image=subspacer.gif;");
aI("text=Antitrust;url=##;image=subspacer.gif;");
aI("text=Consumers;url=##;image=subspacer.gif;");
}
with(milonic=new menuname("Firm")){
style=Submenu;
aI("text=Overview;url=##;image=subspacer.gif;");
aI("text=Current Cases;url=##;image=subspacer.gif;");
aI("text=Settled Cases;url=##;image=subspacer.gif;");
aI("text=Featured Cases;url=##;image=subspacer.gif;");
aI("text=Careers;url=##;image=subspacer.gif;");
aI("text=Newsroom;url=##;image=subspacer.gif;");
aI("text=Q & A;url=##;image=subspacer.gif;");
}
with(milonic=new menuname("Attorneys")){
style=Submenu;
aI("text=Overview;url=##;image=subspacer.gif;");
aI("text=Partners;url=##;image=subspacer.gif;");
aI("text=Associates;url=##;image=subspacer.gif;");
aI("text=of Counsel;url=##;image=subspacer.gif;");
aI("text=Special Counsel;url=##;image=subspacer.gif;");
}
with(milonic=new menuname("Offices")){
style=Submenu;
aI("text=San Diego;url=##;;image=subspacer.gif;");
aI("text=San Francisco;url=##;;image=subspacer.gif;");
aI("text=Los Angeles;url=##;;image=subspacer.gif;");
aI("text=Washington D.C.;url=##;;image=subspacer.gif;");
aI("text=Philadelphia;url=##;;image=subspacer.gif;");
}
drawMenus();
_menuOpenDelay=150 // The time delay before menus open on mouse over
_subOffsetTop=0 // Sub menu top offset
_subOffsetLeft=0 // Sub menu left offset
with(Mainmenu=new mm_style()){
onbgcolor="#4F8EB6";
oncolor="#ffffff";
offbgcolor="#DCE9F0";
offcolor="#515151";
bordercolor="#FFFFFF";
borderstyle="solid";
borderwidth=0;
separatorcolor="#FFFFFF";
separatorsize="0";
padding=0;
fontsize="75%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#000000";
headerbgcolor="#ffffff";
subimagepadding="0";
}
with(Submenu=new mm_style()){
oncolor="#C75100";
offcolor="#000000";
bordercolor="#FFFFFF";
borderstyle="solid";
borderwidth=2;
separatorcolor="#FFFFFF";
separatorsize="2";
padding=3;
fontsize="8pt";
fontstyle="normal";
fontweight="normal";
fontfamily="Arial, Helvetica";
menubgimage="bg.gif";
overfilter="gradientwipe(wipestyle=1, motion=Forward, duration=0.5);Alpha(opacity=100);";
outfilter="gradientwipe(wipestyle=1, motion=Reverse, duration=0.5)";
}
with(milonic=new menuname("Main Menu")){
style=Mainmenu;
top=8;
left=324;
alwaysvisible=1;
orientation="horizontal";
aI("showmenu=PracticeAreas;image=topnav_practiceareas1.gif;overimage=topnav_practiceareas2.gif;");
aI("showmenu=Firm;image=topnav_firm1.gif;overimage=topnav_firm2.gif;");
aI("showmenu=Attorneys;image=topnav_attorneys1.gif;overimage=topnav_attorneys2.gif;");
aI("showmenu=Offices;image=topnav_offices1.gif;overimage=topnav_offices2.gif;");
aI("url=##;image=topnav_contact1.gif;overimage=topnav_contact2.gif;");
aI("url=##;image=topnav_home1.gif;overimage=topnav_home2.gif;");
}
with(milonic=new menuname("PracticeAreas")){
style=Submenu;
aI("text=Overview;url=##;image=subspacer.gif;");
aI("text=Securities;url=##;image=subspacer.gif;");
aI("text=Insurance;url=##;image=subspacer.gif;");
aI("text=Antitrust;url=##;image=subspacer.gif;");
aI("text=Consumers;url=##;image=subspacer.gif;");
}
with(milonic=new menuname("Firm")){
style=Submenu;
aI("text=Overview;url=##;image=subspacer.gif;");
aI("text=Current Cases;url=##;image=subspacer.gif;");
aI("text=Settled Cases;url=##;image=subspacer.gif;");
aI("text=Featured Cases;url=##;image=subspacer.gif;");
aI("text=Careers;url=##;image=subspacer.gif;");
aI("text=Newsroom;url=##;image=subspacer.gif;");
aI("text=Q & A;url=##;image=subspacer.gif;");
}
with(milonic=new menuname("Attorneys")){
style=Submenu;
aI("text=Overview;url=##;image=subspacer.gif;");
aI("text=Partners;url=##;image=subspacer.gif;");
aI("text=Associates;url=##;image=subspacer.gif;");
aI("text=of Counsel;url=##;image=subspacer.gif;");
aI("text=Special Counsel;url=##;image=subspacer.gif;");
}
with(milonic=new menuname("Offices")){
style=Submenu;
aI("text=San Diego;url=##;;image=subspacer.gif;");
aI("text=San Francisco;url=##;;image=subspacer.gif;");
aI("text=Los Angeles;url=##;;image=subspacer.gif;");
aI("text=Washington D.C.;url=##;;image=subspacer.gif;");
aI("text=Philadelphia;url=##;;image=subspacer.gif;");
}
drawMenus();
Any ideas?
Poster: Maz
Dated: Friday March 26 2004 - 2:16:00 GMT
Sometimes its the little things that confuse Mac ie.
You don't need quotes on subimagepadding, infact you can remove all the 0's completely.
Add itemwidth to menu style or you many need to add itemwidth to the last item.
maz
Poster: Doubledown
Dated: Friday March 26 2004 - 19:45:37 GMT
Thanks for your help. Actually I discovered that it wasn't the menu variables that were at fault, but rather how it interacted with the content on the page of html. When I placed the menu in a blank page of html, it displayed fine.
Thanks again!