Hallo.
Ich habe mit Hilfe von Dreamweaver versucht ein Bild zu erstellen, dass bei Drücken einees Knopfes zu einem anderen Bild verändert wird.
Erklärung wäre sehr nett!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Unbenanntes Dokument</title>
</head>
<body>
<script type="text/javascript">
function bild {
if (document.getElementById('blau').src=='http://www.grg23vbs.ac.at/php/lukas.minichmayr/blau.jpeg') {document.getElementById('blau').src='http://www.grg23vbs.ac.at/php/lukas.minichmayr/braun.jpg';
}
else {
document.getElementById('blau').src='http://www.grg23vbs.ac.at/php/lukas.minichmayr/blau.jpeg';
}
}
</script>
<img src="blau.jpeg" id="blau" >
<input name="" type="button" value="Bild" id="knopf" onClick="bild();">
</body>
</
html>