witam, mam problem bo zamiast klonowac mi obrazki to wyswietla tekst, pierwotny obrazek wyswietla sie dobrze, gdzie tu jest błąd?
<html>
<head>
<title></title>
</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++;
}
</script>
</body>
</html>