Gandalf: Mousover 2. Versuch :-)

Beitrag lesen

Versuche mal dieses:

<script langiage="javascript">
$number=5; //wieviel buttons?
$array=new Array();
for($x=0;$x<$number;$x++){
  $array[2*$x]=new Image();
  $array[2*$x].src="button"+$x+".gif";
  $array[2*$x+1]=new Image();
  $array[2*$x+1].src="button"+$x+"h.gif";
}
function Bildwechsel($which,$what){
  document.images["nr"+$which].src="button"+(($what)?"h":"")+$which+".gif";
}
</script>

<a href="../../../index.htm"
   onMouseOver="Bildwechsel(1,1)"
   onMouseOut="Bildwechsel(1,0)"><img src="button1.gif"
   width="130" height="30" border="0" alt="Home" name="nr1"></a><br>
<a href="../../../helferlein/index.htm"
   onMouseOver="Bildwechsel(2,1)"
   onMouseOut="Bildwechsel(2,0)"><img src="button2.gif"
   width="130" height="30" border="0" alt="Helferlein" name="nr2"></a><br>

Undsoweiter...