cr1zz
23.01.2007, 17:42:14
Ich habe folgendes Problem:
Ich möchte wenn ich auf ein Bild gehe zwei Bilder ändern: Das eigene Bild und noch ein anderes. Bisher habe ich es so versucht:
</head>
<script type="text/javascript">
pala = new Image();
pala.src = "images/paladin.jpg";
pala_over = new Image();
pala_over.src = "images/paladin_over.jpg";
box = new Image();
box.src = "images/box.jpg";
box_pala = new Image();
box_pala.src = "images/box_pala.jpg";
</script>
Und das Bild
<a
onMouseOver="self.document.pala.src=pala_over.src"
onMouseOut="self.document.pala.src=pala.src"
onMouseOver="self.document.box.src=boxpala.src"
onMouseOut="self.document.box.src=box.src"
href="#"><img name="pala" src="images/paladin.jpg" width="73" height="85" alt="" border="0"></a>
Das erste Problem ist, das sich das eigene Bild beim MouseOut nicht verändert und die Box.src erst gar nicht.
Ich bedanke mich schonmal für die Hilfe.
lg
cr1zz
Ich möchte wenn ich auf ein Bild gehe zwei Bilder ändern: Das eigene Bild und noch ein anderes. Bisher habe ich es so versucht:
</head>
<script type="text/javascript">
pala = new Image();
pala.src = "images/paladin.jpg";
pala_over = new Image();
pala_over.src = "images/paladin_over.jpg";
box = new Image();
box.src = "images/box.jpg";
box_pala = new Image();
box_pala.src = "images/box_pala.jpg";
</script>
Und das Bild
<a
onMouseOver="self.document.pala.src=pala_over.src"
onMouseOut="self.document.pala.src=pala.src"
onMouseOver="self.document.box.src=boxpala.src"
onMouseOut="self.document.box.src=box.src"
href="#"><img name="pala" src="images/paladin.jpg" width="73" height="85" alt="" border="0"></a>
Das erste Problem ist, das sich das eigene Bild beim MouseOut nicht verändert und die Box.src erst gar nicht.
Ich bedanke mich schonmal für die Hilfe.
lg
cr1zz