Andre Speit: Mousein-Mouesout

Beitrag lesen

Ok, ich werd drauf achte.

Hab das ganze aber grad mit boolean Werten hingekriegt! Werd noch ein bissle rumprobieren aber ich denke ich habs geschafft.

Gruß und danke an alle
Andre Speit

______________________________________________________________________

<html>

<script type="text/javascript">

normal1 = new Image();
normal1.src="bild1.gif";

highlight1 = new Image();
highlight1.src="bild1_hi.gif";

test3=5
wert="false"

function bildwechsel(bildnr,bildobjekt)
{
if
(wert == "true"){
document.images[bildnr].src=bildobjekt.src
}
else
{

}
}

</script>

<script type="text/javascript">

var zahl = 0;

function test() {

wert="true"
}

</script>

<body>
<a href="#" onmouseover="bildwechsel(0,highlight1)" onmouseout="bildwechsel(0,normal1)"><img src="bild1.gif"></a>

<a href="javascript:test()"> TEST </a>

</body>
</html>