Code: Select all
aI("itemwidth=132;showmenu=community;text=community;url=/community/forum;");
then, in order to get the submenus to line up, i need to set the width to 129px in ff, and 132px in ie.
am i missing something obvious?
Code: Select all
aI("itemwidth=132;showmenu=community;text=community;url=/community/forum;");
No, not really. Unless there's a doctype declaration in your webpage, IE and FF will interpret the box model differently. The most basic explanation is this: If you set a total width of a table cell or div (for example) at 200px and the border width at 2px, IE will recalculate to INCLUDE the border width inside the total width. So for IE, it would be 196px (for content) + 2px (right border) + 2px (left border). Total width = 200px.even if it is a model interpretation difference, shouldn't it be consistent in a given browser?
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>welcome to baarbd.org - baarbd home</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"><LINK
href="styles_basic.css" type=text/css rel=stylesheet><LINK
href="/favicon.ico" rel="shortcut icon"><META
content="bay area adventure racing babes & dudes, Adventure Racing in the Bay Area -
San Francisco and surrounding regions - Marin, East Bay,
Penninsula, South Bay, and more!"
name=description>
<META
content="bay area adventure racing, san francisco
adventure racing, adventure racing, adventure race,
bay area, navigation, nav"
name=keywords>
<META content="ALL, INDEX, FOLLOW" name=robots>
<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>
<SCRIPT language=JavaScript src="menu_data.js"
type=text/javascript></SCRIPT>
<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
</head>
<body><!-- open main body table -->
<TABLE id=header cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD><!-- open header table -->
<TABLE style="BACKGROUND-COLOR: rgb(255,255,255)" cellSpacing=0
cellPadding=0 border=0>
<TBODY>
<TR>
<TD align=middle><A href="http://websites.milonic.com/209.128.111.61:8100/"><IMG
src="header_05.jpg" border=0></A> </TD></TR>
<TR>
<TD><!-- open top nav table -->
<TABLE style="BACKGROUND-COLOR: #ffffff" cellSpacing=0 cellPadding=0
width=800 border=0>
<TBODY>
<TR>
<TD class=topnav_container align=middle>
<TABLE cellPadding=0 width=500 border=0>
<TBODY>
<TR>
<TD class="menutd">
<SCRIPT src="embedded_menu.js"
type=text/javascript></SCRIPT>
</TD></TR></TBODY></TABLE><!-- close top nav table --></TD></TR></TBODY></TABLE><!-- close header table --></TD></TR>
</TBODY></TABLE>
<!-- close main body table? --> </BODY></HTML>
Code: Select all
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
orientation="horizontal";
position="relative";
style=menuStyle;
menualign="center";
menuwidth=500;
margin=0;
aI("itemwidth=134;showmenu=community;text=community;url=/community/forum;");
aI("itemwidth=101;showmenu=racing;text=racing;url=/racing;pagematch=/racing;");
aI("itemwidth=125;showmenu=resources;text=resources;url=/resources;");
aI("itemwidth=104;showmenu=gear;text=gear +;url=/gear;");
}
drawMenus();
Code: Select all
fixMozillaZIndex=true; //Fixes Z-Index problem with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;
with(menuStyle=new mm_style()){
//bordercolor="#000000";
//borderstyle="solid";
//borderwidth=1;
fontfamily="Arial, Helvetica, sans-serif";
fontsize="12px";
fontweight="bold";
align="center";
fontstyle="normal";
headerbgcolor="#FFFFFF";
headercolor="#000000";
offbgcolor="#FFFFFF";
offcolor="#000099";
offborder="1px solid #000000";
onbgcolor="#6699CC";
oncolor="#333333";
onborder="1px solid #000000";
padding=4;
pagebgcolor="#6699CC";
pagecolor="#333333";
separatorcolor="#FFFFFF";
separatorsize=3;
}
with(subMenuStyle=new mm_style()){
onbgcolor="#6699CC";
oncolor="#333333";
offbgcolor="#ffffff";
offcolor="#000099";
bordercolor="#000000";
borderstyle="solid";
borderwidth=1;
separatorcolor="#000000";
separatorsize="1";
padding=4;
fontsize="12px";
fontstyle="normal";
fontfamily="Arial, Helvetica, sans-serif";
align="center";
headercolor="#FFFFFF";
headerbgcolor="#FFFFFF";
}
with(milonic=new menuname("community")){
style=subMenuStyle;
top="offset=-1px";
itemwidth=139;
aI("text=calendar;url=/community/calendarx;")
aI("text=forums;url=/community/forum;")
aI("text=ar glossary;url=/community/arwiki;")
aI("text=email list;url=/community/mailing_list;")
}
with(milonic=new menuname("racing")){
style=subMenuStyle;
top="offset=-1px";
itemwidth=106;
aI("text=teams;url=/racing/teams;");
aI("text=adventure race;url=/racing/ar;");
aI("text=cross-train;url=/racing/cross_train;");
}
with(milonic=new menuname("resources")){
style=subMenuStyle;
top="offset=-1px";
itemwidth=130;
aI("text=adventure race;url=/resources/ar/;");
aI("text=cross-train;url=/resources/cross_train;");
}
with(milonic=new menuname("gear")){
style=subMenuStyle;
top="offset=-1px";
itemwidth=108;
aI("text=gear;url=/gear/gear/;");
aI("text=nutrition;url=/gear/nutrition/;");
}
drawMenus();