Hallo.
Grüß dich.
Ich habe ein Problem.
Wer hat das nicht?
Ich will wenn eine Variable "x" den wert "y" übersteig, ein Bild austauschen. (Standartbild und Neubild)
<html>
<head>
<title></title>
<script type="text/javascript" language="JavaScript">
<!--
function check(x,y)
{
// Ist x größer als y, wird dem Bild die neue Source zugewiesen
if(x > y){document.bild.src = "Neubild.gif"}
}
//-->
</script>
</head>
<body>
<img src="Standartbild.gif" alt="" name="bild" border="0"><br>
<form>
<input type="button" value="x < y" onClick="check(0,1)"><br>
<input type="button" value="x > y" onClick="check(1,0)">
</form>
</body>
</html>
Gruß
Norbert