Hi ich hab mal versucht ein Bild zu Vergrößern mit onmouseover und onmouseout.
Bin JS Anfänger und hab das mal so probiert:
JS
funktioniert natürlich nicht
Kann mir jemand sagen was ich noch falsch mache?
Bin JS Anfänger und hab das mal so probiert:
JS
Code:
function bild1() {
document.getElementById("bild1").onmouseout = "<img src='../jpg/1.jpg' widht='200' hight='200'>";
document.getElementById("bild1").onmousover = "<img src='.../jpg/1.jpg' width='400' height='400'>";
}
HTML:
<div id="bild1"><img src="../jpg/1.jpg" width="200" height="200"></div>
<input type="image" onmouseover="bild1()" onmouseout="bild1()"/>
funktioniert natürlich nicht
Kann mir jemand sagen was ich noch falsch mache?