lousypoetry: Bildwechsel mit Animationen?

Beitrag lesen

Hallo!

ich möchte, dass sich ein Bild wechselt, wenn der anwender mit der maus draufklickt. das bild,das neu erscheinen soll ist eine GIF-animation.

mein script:

<script language="javascript">
<!--
Boot1 = new Image();
Boot1.src="boot.gif";
Boot2 = new Image();
Boot2.src="animation.gif";

function Bildwechsel(Bildnr,Bildobjekt)
 {
  window.document.images[Bildnr].src = Bildobjekt.src;
 }
//-->
</script>
</head>
<body>

<img src="boot.gif" onmouseover="Bildwechsel(0,Boot2)">

Problem: das bidl wechselt zwar, jedoch läuf die animation erst ab, wenn ich erneut mit der maus rüberfahre (und wieder raus), mache ich das nicht, wird nur das "startbild" der animation angezeigt.
woran liegt das? Danke!