Hi,
The problem has to do with putting the menu in a div that is in a div that is in a div etc. with different position settings absolute and relative. It's due to the fact that when you code in css like that, it ends up applying not only to the page divs but to any divs that are in the menu program.
I did find a solution, one that many who are using a layout similar to yours use, and that is to split off the 'header' area of your page and set the table so the menu itself goes into the table and not into nested divs.
Here is what I came up with and it seems to work fine. You'd want to test it in all browsers available to you, but FF and IE seem OK. I don't have mac system available.
Your menu data file would be the following
Code: Select all
fixMozillaZIndex=false; //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;
_buildAfterLoad=true;
with(menuStyle=new mm_style()){
bordercolor="#FFFFFF";
borderstyle="solid";
borderwidth=0;
fontfamily="Verdana, Tahoma, Arial";
fontsize="12px";
fontstyle="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#139FB4";
offcolor="#FFFFFF";
onbgcolor="#0F6BB0";
oncolor="#ffcc00";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
padding=5;
pagebgcolor="#139fb4";
pagecolor="#ffcc00";
separatorcolor="#ffffff";
separatorsize=1;
subimage="arrow.gif";
subimagepadding=2;
}
subStyle=new copyOf(menuStyle);
subStyle.bordercolor="#FFFFFF";
subStyle.borderstyle="solid";
subStyle.borderwidth=1;
subStyle.separatorcolor="#2D729D";
/////
/////
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
orientation="horizontal";
style=menuStyle;
position='relative';
menuheight=26;
itemheight=26;
aI("image=linkskurve-24b.gif;type=header;separatorcolor=#ffffff;");
aI("fontsize=12px;text=Suchen;url=index.php?option=com_search&ps=Suche;offclass=menubordr;onclass=menubordr;");
aI("fontsize=12px;text=Newsletter;url=index.php?option=com_yanc&ps=Newsletter;offclass=menubordr;onclass=menubordr;");
aI("fontsize=12px;showmenu=Presse;text=Presse;offclass=menubordr;onclass=menubordr;");
aI("fontsize=12px;showmenu=Unterstuetzen;text=Unterstützen;offclass=menubordr;onclass=menubordr;");
aI("fontsize=12px;showmenu=Ueber;text=Über uns;offclass=menubordr;onclass=menubordr;");
aI("image=apfel-endeb.gif;url=http://umweltinstitut.org/test1/index.php?option=com_content&task=view&id=31&Itemid=45;");
}
with(milonic=new menuname("Presse")){
style=subStyle;
aI("text=2007;url=#;");
aI("text=2006;url=#;");
aI("text=2005;url=#;");
aI("text=2004;url=#;");
aI("text=2003;url=#;");
aI("text=2002;url=#;");
aI("text=2001;url=#;");
aI("text=2000;url=#;");
aI("text=1999;url=#;");
}
with(milonic=new menuname("Unterstuetzen")){
style=subStyle;
aI("text=Spende;url=#;");
aI("text=Fördermitglied werden;url=#;");
aI("text=Erbschaft;url=#;");
aI("text=Bußgelder;url=#;");
}
with(milonic=new menuname("Ueber")){
style=subStyle;
aI("text=Überblick;url=index.php?option=com_content&task=view&id=29&ps=Über%20uns;");
aI("showmenu=Taetigkeit;text=Tätigkeitsbericht;");
aI("text=Team;url=#;");
aI("text=Kontakt;url=#;");
aI("text=Impressum;url=#;");
aI("text=Dank an;url=#;");
aI("text=Neues;url=#;");
aI("text=Jobs/Praktikum;url=#;");
aI("text=Praktikumsbericht;url=#;");
aI("text=Infomaterial;url=#;");
aI("text=Links;url=#;");
}
with(milonic=new menuname("Taetigkeit")){
style=subStyle;
aI("text=Vorwort;url=#;");
aI("text=2006;url=#;");
aI("text=2005;url=#;");
aI("text=2004;url=#;");
aI("text=2003;url=#;");
aI("text=2002;url=#;");
aI("text=2001;url=#;");
aI("text=2000;url=#;");
aI("text=1999;url=#;");
}
drawMenus();
You'll note there is a buildAfterLoad=true; added at the top, that is because you are using the method to place the relative menu by calling all the files in the div/table.
Your page would be this. The only thing I did was to split off the 'header' area and make it it's own table not using divs in the cell that has the menu. The menu itself will now contain the beginning and ending images, while the flag is still in its own table cell. This is the top of the page, showing the top changes but including what is now existing at that left side main menu and that Startseite on the right. The two areas have just been separated out, but are the same visual layout.
Code: Select all
<TABLE cellSpacing=0 cellPadding=0 width=900 border=0>
<TR>
<TD ROWSPAN=2 align="right" width=156><DIV id=header><A
href="http://websites.milonic.com/umweltinstitut.org/test1/index.php?option=com_content&task=view&id=31&Itemid=45"><IMG
alt=Apfel src="Apfel.gif" border=0></A> </DIV></TD>
<TD width=744><DIV id=top_outer>
<DIV id=top_inner align=left>
<DIV id=headline>Umweltinstitut München e.V.</DIV></TD>
</TR>
<TR>
<TD valign='bottom'>
<!--Milonic DHTML Website Navigation Menu Version 5.0+ Copyright 2006 (c) Milonic Solutions Limited (UK). All Rights Reserved. Please visit http://milonic.com/ for more information. -->
<table border=0 cellpadding=0 cellspacing=0 height=26>
<tr>
<td width='68'> </td>
<td><SCRIPT src="milonic_src.js" type=text/javascript></SCRIPT>
<SCRIPT src="mmenudom.js" type=text/javascript></SCRIPT>
<SCRIPT src="test_data1.js" type=text/javascript></SCRIPT>
<SCRIPT src="tooltips.js" type=text/javascript></SCRIPT></td>
<td width='150'>
<IMG ALT="change to english" SRC="flagge_und_bg.jpg" BORDER="0">
</td>
<tr>
<td colspan=3 height=5>
</td>
</tr>
</table></TD>
</TR>
</TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=900 border=0>
<TR>
<TD><DIV id=left_outer>
<DIV id=left_inner>
<DIV id=left_inner_abschluss_outer>
<DIV id=left_inner_abschluss_top_inner align=right>
<IMG alt="" SRC="ma_top_right.gif">
</DIV>
</DIV>
<DIV class=moduletable>
<H3>
Main Menu
</H3>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
Finally, in your css file add this code. This is the code to produce the border over the actual items in the middle of the menu and not have it over the beginning and ending items.
Code: Select all
.menubordr{border-top:1px solid #ffffff;border-right:0px solid #ffffff;border-bottom:1px solid #ffffff;border-left:0px solid #ffffff;}
If you look at the menu_data file you'll see that this class is called in the 'middle' main menu items that need the border top and bottom. The only thing I couldn't do in the main menu was to keep the blue color separator, I had to go to white. The reason for this is that since the menu now has the curved beginning and the ending images it is not possible to use the border that surrounds the actual full 'menu' because you wouldn't want a border around that beginning or that ending image. This means using css since what you really need in this setup is a top and bottom border for each item, using css borders put borders around the items and not the 'menu' With that kind of border, having the separator blue in the main menu meant you had a white border top and bottom on the Suchen item, and then this 1px blue color that was the separator, then white border over and under the next item and then 1px blue separator.
This really isn't involved but the explanation takes longer than the fix

I'll be glad to put your page up for you to see if you need that.
Ruth
Ruth