Hallo,
<script type="text/javascript">
function layerUp(name){
document.getElementById(name).style.zIndex += 2;
}
function layerDown(name){
document.getElementById(name).style.zIndex -= 2;
}
</SCRIPT></head>
<STYLE type="text/css">
#divBild1{position:absolute;top:0; left:10px;z-index:2}
#divBild2{position:absolute;top:0; left:120px;z-index:1}
</STYLE>
<body>
<div id="divBild1"><img src="images/bild1.gif" border="0" ></div>
<div id="divBild2">
<img src="images/bild2.gif" border="0"
OnMouseOver="layerUp('divBild2')"
OnMouseOut="layerDown('divBild2')">
</div></body>
</html>
Entweder du benutzt 'document.all' (das alte I4-Modell) oder 'document.getElementById' (empfehlenswert). 'document.all.getElementById'gibt es nicht.
Gruß, Jan