Andi: Schichtposition dynamisch tauschen

Beitrag lesen

Ich will nur ein Bild in den Vordergrund bringen.
Andere Browser ist jetzt erst mal egal.
Hier nun das komplette Script.

<html>
<head>

<title></title>

<script language="JavaScript">
function tauschen() {
 document.all.bot.style.zIndex = "10";
}
</script>

</head>
<body>

<div id="bot" style="position:relative; top:100; left:0;"><a href="#" onmouseover="tauschen();"><img border="0" src="images/start/wechsel1.jpg" width="180" height="135"></a></div>
<div id="wasserf" style="position:relative; top:-135; left:130;"><img border="0" src="images/start/wechsel2.jpg" width="135" height="180"></div>
<div id="berge" style="position:relative; top:-200; left:203;"><img  border="0" src="images/start/wechsel3.jpg" width="135" height="180"></div>

<script language="JavaScript">
document.all.bot.style.zIndex = "1";
document.all.wasserf.style.zIndex = "2";
document.all.berge.style.zIndex = "3";
</script>

</body>
</html>