simon: div ebene ist leider durchsichtig

Beitrag lesen

function t1() {
 if(document.getElementById)
   document.getElementById("Layer1").style.visibility = "visible";
}

//-->
</script>
</head>
<body>
<form action="" method="post">
<input name="" type="button" value="change" onClick="t1();">
<div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1; left: 223px; top: 49px; background-color:#FFFFFF;visibility:hidden;">testfeld1</div>
</form>
<div id="Layer2" style="position:absolute; width:200px; height:115px; z-index:2; left: 223px; top: 49px;">
  <p>testfeld2</p>
  <p>&nbsp;</p>
</div>
</body>