Joachim: gesamtes <div> clickbar (mit mous hand cursor)

Beitrag lesen

Hi,

sowas?

<html>
<head>

<style type="text/css">
#ebene0 {
 position:absolute;
 top:100px;
 left:100px;
 width:200px;
 height:200px;
 visibility:visible;
 background-color: red;
 layer-background-color: red;
 border: none;
 cursor: hand;
}

</style>
<script language="javascript1.2" type="text/javascript">
function dRef(num)  {return (document.layers? document.layers[num] : (document.all? document.all[num] : document.getElementById(num)))}
function go() {
 if (document.layers) document.ebene0.captureEvents(Event.CLICK);
 dRef("ebene0").onclick = function(e) {
  alert(this.id);
  if(document.layers)routeEvent(e);
 }
}
</script>
</head>
<body onload="go()">
<div id="ebene0"></div>
</body>
</html>

Gruesse  Joachim