witam mam problem bo wyswietla mi podana ilosc obrazkow ale nie zmieniaja sie po najechaniu na nich myszka czyli onmouseover i onmouseout.. gdzie tu jest blad.. dodam ze osobno te funkcje dzialaja ale razem nie..
nie wiem jaką zmienną dać jako moje 'gh'..
<html>
<head>
</head>
<body>
<a id="cc"><img src="15.jpg" width="100" height="100" id="obrazekk" /> </a>
<a id="dd"><img src="15.jpg" width="100" height="100" id="obrazekk" /> </a>
<script>
var x=1;
while (x<13) {
var itmc=document.getElementById("dd");
var clns=itmc.cloneNode(true);
document.getElementById("cc").appendChild(clns);
x++;
var gh = document.getElementById("cc").appendChild(clns);
gh.onmouseover = function() {
this.src = 't.jpg';
}
gh.onmouseout = function() {
this.src = 'y.jpg';
}}
</script>
</body>
</html>