Hi dudes ?
I`m making web page that contains 4 images. When start javascript function should change the images in a row with 5 seconds delay
This is the code:
<html>
<head>
<script>
function over(val) {
document.images[val].src = “images/red.png” ;
}
function out(val) {
document.images[val].src = “images/blue.png” ;
}
</script>
</head>
<body onLoad=”strt()”>
<script>
function strt() {
for (i=0;i<4;i++) {
over(i);
sleep(5);
out(i);
}
}
</script>
<center>
<a href=”http://www.abv.bg” onMouseOver=”over(0)” onMouseOut=”out(0)”><img src=”images/blue.png”></a>
<a href=”http://www.dir.bg” onMouseOver=”over(1)” onMouseOut=”out(1)”><img src=”images/blue.png”></a>
<a href=”http://www.data.bg” onMouseOver=”over(2)” onMouseOut=”out(2)”><img src=”images/blue.png”></a>
<a href=”http://www.setcom.bg” onMouseOver=”over(3)” onMouseOut=”out(3)”><img src=”images/blue.png”></a>
</center>
</body>
</html>
but the script don`t work. it don
what did i wrong