Menu über i-Frame
Kai
- javascript
Ich habe ein Menu, dass über einem i-Frame aufklappt, das ist im IE kein Problem, in Netscape aber kann ich das Menu nicht benutzen, weil es sofort zugeht sobald man über den i-Frame kommt.
Hier der Code (aufs nötige gekürzt):
---------------------------------------------------------------------
<head>
<script language="JavaScript">
<!--
function MenueAuf(Men) {
if(document.getElementById) {
document.getElementById(Men).style.visibility="visible";
}
else if(document.all && !document.getElementById) {
document.all[Men].style.visibility="visible";
}
}
function MenueZu(Men) {
if(document.getElementById) {
document.getElementById(Men).style.visibility="hidden";
}
else if(document.all && !document.getElementById) {
document.all[Men].style.visibility="hidden";
}
}
//-->
</script>
</head>
---------------------------------------------------------------------
<table rules=none border=1 background="../pic/tble_bg_men.png" cellpadding=1 cellspacing=0 width="800" bordercolor="#000000">
<td id="nope">
<table border=0 cellspacing=1 cellpadding=2 bordercolor="#000000"><tr><td id="jo" bgcolor="#0070C0" align="left" valign="top" OnMouseOver="style.backgroundColor='#0090E0'; style.cursor='default';MenueAuf('BERICHT')"; ; OnMouseOut="style.backgroundColor='#0070C0'; MenueZu('BERICHT')"><font class=link> :: Jahresberichte </font></a></td></tr>
</table>
</td>
<TABLE id="side" border=0 bordercolor="#000084" cellspacing=0 cellpadding=0 width="800" border=0>
<TR>
<TD valign=top><br>
<IFRAME border=0 name="iframe" marginWidth=10 marginHeight=0 src="jahresbericht_2000X.html" frameBorder=0 width=796 height=395>Ihr Browser unterstützt Inlineframes nicht oder zeigt sie in der derzeitigen Konfiguration nicht an.</IFRAME>
</TD></TR>
</TABLE>
---------------------------------------------------------------------
<div ID="BERICHT" OnMouseOver="MenueAuf('BERICHT')" OnMouseOut="MenueZu('BERICHT')" style="position:absolute; left:85px; top:67px; width:120px; Visibility:hidden; Background-Color:#000000;">
<table width=100% border=0 cellspacing=1 cellpadding=3>
<tr><td id="3d" bgcolor="#EBEBEB" align="left" valign="top" OnMouseOver="style.backgroundColor='#FFFFFF';style.cursor='pointer';" OnMouseOut="style.backgroundColor='#EEEEEE'; " OnClick="location.href='jahresbericht_2000.html';"><font size=1 face=Verdana class=navi> 2000</font></td></tr>
</table></div>
---------------------------------------------------------------------
Thx, MfG Kai