Anton Katzer: div, z-index und visibility ... IE-Bug?

Beitrag lesen

Hier noch der entsprechende Quelltext:

<div id="Mindx" onMouseOver="SetVis('MindxGIF',1)" onMouseOut="SetVis('MindxGIF',0)" style="position:absolute; left:396px; top:433px; width:36px;  height:37px;  z-index:105">
 <img style="visibility:hidden" src="img/main_Mindx.gif" width="36"  height="37"  border="0" usemap="#MMindx" id="MindxGIF">
 <map name="MMindx">
  <area shape="poly" coords="1,14,14,1,33,23,19,37" href="#" >
 </map>
</div>

<div id="cbg" style="position:absolute; left:312px; top:0px; width:200px; height:600px; z-index:10">
<img src="img/nil_commentbg.jpg" width="200" height="600">
</div>

Und die SetVis-Funktion:

function SetVis(object_id,object_vis)
  {
   if (object_vis == 1)
    document.getElementById(object_id).style.visibility='visible';
   else
    document.getElementById(object_id).style.visibility='hidden';
  }

Wie gesagt, in FireFox und Opera funzt's.