tolonath: .hover und OnMouseOver

Beitrag lesen

Gibt es hier noch etwas auszusetzen? ö.ö

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  
<html>  
<head>  
<title></title>  
  
<style type="text/css">  
#links {  
width: 200px; height: 200px;  
position:absolute; top:100px; left:100px;  
background-color: red;  
}  
#rechts {  
width: 200px; height: 200px;  
position:absolute; top:200px; left:200px;  
background-color: green;  
}  
</style>  
  
<script language="JavaScript">  
function vor (was) {  
    was = was;  
      document.getElementById('links').style.zIndex = "1";  
      document.getElementById('rechts').style.zIndex = "1";  
      was.style.zIndex = "2";  
}  
</script>  
  
</head>  
<body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000">  
  
<div id="links" onclick="vor(this)"></div>  
<div id="rechts" onclick="vor(this)"></div>  
  
</body>  
</html>