I created two different menues styles, the name of main menue style is "haupt_menuStyle", the name of the submenue style is "neben_menuStyle". The main menue itself is built in a table cell. It´s a vertical menue, the position is relative.
With Internet Explorer all works fine:
The problem are Firefox 1.0 and Netscape 7.2, the positon of the first submenue is not correct:
It would be great if you would have an idea for solving the problem.
Best regards
Bernhard Lenger
http://www.lenger.de
Here the main (haupt_menuStyle) and the sub (neben_menuStyle) style:
Code: Select all
_menuCloseDelay=500
_menuOpenDelay=0
_subOffsetTop=0
_subOffsetLeft=-4
with(haupt_menuStyle=new mm_style()){
onbgcolor="#efF6ff";
oncolor="#14659d";
offbgcolor="#BED7EE";
offcolor="#14659d";
bordercolor="#BED7EE";
borderstyle="solid";
borderwidth=0;
separatorcolor="#14659d";
separatorsize="0";
itemwidth=135;
padding=2;
fontsize="10px";
fontstyle="normal";
fontweight="bold";
fontfamily="Verdana, Arial";
pagecolor="14659d";
pagebgcolor="#efF6ff";
headercolor="#000000";
headerbgcolor="#ffffff";
onborder='1px solid #14659d';
image="../../../blank_10.gif";
pageimage="../../../blank_6.gif";
pagesubimage="../../../pfeil_r_technik_hauptmenue.gif";
imagepadding=0
subimage="../../../pfeil_r_technik_hauptmenue.gif";
onsubimage="../../../pfeil_r_technik_hauptmenue.gif";
subimagepadding="0";
}
with(neben_menuStyle=new mm_style()){
onbgcolor="#efF6ff";
oncolor="#14659d";
offbgcolor="#BED7EE";
offcolor="#14659d";
bordercolor="#f4FBff";
borderstyle="solid";
borderwidth=1;
separatorcolor="#BED7EE";
separatorsize="1";
padding=2;
fontsize="10px";
fontstyle="normal";
fontweight="bold";
fontfamily="Verdana, Arial";
pagecolor="14659d";
pagebgcolor="#efF6ff";
headercolor="#000000";
headerbgcolor="#ffffff";
onborder='1px solid #14659d';
subimage="../../../pfeil_r_technik_hauptmenue.gif";
onsubimage="../../../pfeil_r_technik_hauptmenue.gif";
image="../../../blank_6.gif";
pageimage="../../../blank_6.gif";
pagesubimage="../../../pfeil_r_technik_hauptmenue.gif";
imagepadding=0
subimagepadding="0";
}
Here the in the table cell embedded main menue:
Code: Select all
<td width=100%">
<SCRIPT TYPE="text/javascript">
with(milonic=new menuname("Main Menu")){
style=haupt_menuStyle;
position="relative";
menuwidth="100%";
menualign="left";
alwaysvisible=1;
overflow="scroll";
aI("text=Flugzeuge;showmenu=Flugzeuge;");
aI("text=Hubschrauber;showmenu=Hubschrauber;");
aI("text=Autos;showmenu=Autos;");
aI("text=Schiffe;showmenu=Schiffe;");
aI("text=Elektroantriebe;showmenu=Elektroantriebe;");
aI("text=Elektronik;showmenu=Elektronik;");
aI("text=Verbrenner;showmenu=Verbrenner;");
aI("text=Zubehör;showmenu=Zubehör;");
}
drawMenus();
</SCRIPT>
Code: Select all
with(milonic=new menuname("Flugzeuge")){
style=neben_menuStyle;
overflow="scroll";
aI("text=Scale-Segler;showmenu=Vorfertigung Scale-Segler;");
aI("text=Segler/E-Segler ;showmenu=Vorfertigung Segler/E-Segler;");
aI("text=Motormodelle;showmenu=Modellalphabet Motormodelle;");
aI("text=Slow-/Parkflyer;showmenu=Modellalphabet Slow-/Parkflyer;");
aI("text=Jet´s;url=neu_web_store.pl?page=micr1.htm&&cart_id=;");
aI("text=EPP-Modelle;showmenu=Modellalphabet EPP-Modelle;");
}
with(milonic=new menuname("Vorfertigung Scale-Segler")){
style=neben_menuStyle;
overflow="scroll";
aI("text=Fertigmodelle ;showmenu=Modellalphabet Scale-Segler Fertigmodelle;");
aI("text=Holzbaukästen ;url=neu_web_store.pl?page=scah1.htm&&cart_id=;");
}
with(milonic=new menuname("Vorfertigung Segler/E-Segler")){
style=neben_menuStyle;
overflow="scroll";
aI("text=Fertigmodelle ;showmenu=Modellalphabet Segler/E-Segler Fertigmodelle;");
aI("text=Holzbaukästen ;url=neu_web_store.pl?page=segh1.htm&&cart_id=;");
}
ETC., ETC.