Hi. I’ve got a problem with changing the multiple images source. The code below changes the first image only. What should I do to change the other eight images? Please check this code:
<!DOCTYPE HTML SYSTEM>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-2″>
<title>obrazki</title>
<style type=”text/css”>
.col {
float: left;
width: 33%;
height: 33%;
}
</style>
</head>
<body>
<div class=”col odd”>1<br>
<img id=”asdf” src=”
<div class=”col even”>2<br>
<img id=”asdf” src=”
<div class=”col odd”>3<br>
<img id=”asdf” src=”
<script type=”text/javascript”>
var img = document.getElementById(‘asdf’);
var origSrc = img.src;
var timeout = setTimeout(function(){
img.src = ‘
}, 2000);
</script>
</body>
</html>