Leider läuft mein code nur auf ns4 richtig. weiß jemand Rat?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function hideLayer(nr) {
if (n) document.layers[nr].visibility = "hide";
if (ie) layers[nr].style.visibility = "hidden";
}
function showLayer(nr) {
if (n) document.layers[nr].visibility = "show";
if (ie) layers[nr].style.visibility = "visible";
}
//-->
</script>
</head>
<body>
<div id="Layer1" style="position:absolute; width:171px; height:115px; z-index:1; top:100; background-color: #0066FF; layer-background-color: #0066FF; border: 1px none #000000;" visibility="hide">
<p><a href="javascript:showLayer(1)"><b>Anderen Layer anzeigen</b></a><br>
(dazu wird ein einfaches JavaScript eingesetzt)</p>
<p><a href="javascript:showLayer(2)"><b>Anderen Layer anzeigen</b></a><br>
(dazu wird ein einfaches JavaScript eingesetzt)</p>
<p><a href="javascript:showLayer(3)"><b>Anderen Layer anzeigen</b></a><br>
(dazu wird ein einfaches JavaScript eingesetzt)</p>
</div>
<div id="Layer2" class="spalte1" style="position:absolute; width:200px; height:130px; z-index:2; left: 300; top: 50; visibility: hide; visibility: hidden; background-color: #006699; layer-background-color: #006699; border: 1px none #000000;">
<p><a href="javascript:hideLayer(1)"><b>Diesen Layer verstecken</b></a><br>
(dazu wird ein einfaches JavaScript eingesetzt)<br>
</p>
</div>
<div id="Layer3" style="position:absolute; width:200px; height:115px; z-index:3; left: 300; top: 180; visibility: hide; visibility: hidden; background-color: #006666; layer-background-color: #006666; border: 1px none #000000;">
<p><a href="javascript:hideLayer(2)"><b>Diesen Layer verstecken</b></a><br>
(dazu wird ein einfaches JavaScript eingesetzt)</p></div>
<div id="Layer4" style="position:absolute; width:200px; height:115px; z-index:4; left: 300; top: 310; visibility: hide; visibility: hidden; background-color: #99CC33; layer-background-color: #99CC33; border: 1px none #000000;">
<p><a href="javascript:hideLayer(3)"><b>Diesen Layer verstecken</b></a><br>
(dazu wird ein einfaches JavaScript eingesetzt)</p></div>
</body>
</html>