carsten schlichting: rollover-fehler

Beitrag lesen

Hallo

also hier ist der richtige Link[Link:http://de.selfhtml.org/javascript/beispiele/buttons.htm]

Und hier ist der code: (er funktionierte erst und dann nach dem Einfügen eines 2. divs, ist der Fehler aufgetreten? --sowohl bei meiner originalpage als auch bei diesem testscript hier? Sogar ohne php tritt dasselbe problem auf??

<?php
echo

'<html><head><script language="JavaScript" type="text/JavaScript">

mypag0 = new Image();
mypag0.src = "images/mypag.gif";
mypag_dr0 = new Image();
mypag_dr0.src = "images/mypag_dr.gif";
logou1 = new Image();
logou1.src = "images/logou.gif";
logou_dr1 = new Image();
logou_dr1.src = "images/logou_dr.gif";

function BiWe (Bild, Bild_dr) {
 window.document.images[Bild].src = Bild_dr.src
}
</script></head>
<body>'
;

echo'<div id="index" style="position:absolute; top:0; left:0;z-index:10"><img src"images/ra.gif"></div>  ' .
  '<div id="home" style="position: absolute; top:400px;"><table height="55" border="3">
    <tr>
      <td width="13">&nbsp;</td>
      <td width="143" align="left" nowrap><font size="2" face="Arial, Helvetica, sans-serif">Hallo
        </font></td>
      <td width="55">&nbsp;</td>
      <td width="26"><a href="index.php" onMouseOut="BiWe(0,mypag0)"  onMouseOver="BiWe(0,mypag_dr0)"><img src="images/mypag.gif" border="0"></a></td>
      <td width="55">&nbsp;</td>
      <td width="26"><a href="index.php" onMouseOut="BiWe(1,logou1)"  onMouseOver="BiWe(1,logou_dr1)"><img src="images/logou.gif" border="0"></a></td>
      <td width="55">&nbsp;</td>

</tr>
  </table></div>';
echo'</body></html>';

?>

Auf jedenFall danke --vielleicht weiß ja auch jemand alternative Scripte, die dieselbe Funktion ausüben.

grüße von mir

carsten