Simple Image Replacement : Image Img : HTML JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » HTML » Image Img »

 

Simple Image Replacement



<html>
<head>
<title>Replacing Images</title>
<script language="JavaScript">
var ix = 0
function changeImages(milliseconds) {
   window.setInterval("changeImage()", milliseconds)
}
function changeImage() {
     ++ix;
     ix %= 6;
     var imageRef = document.images[0];
     imageRef.src = "http://www.navioo.com/style/"+ix+".gif";
}
</script>
</head>
<body onload="changeImages(500)">
<p align="center"><img id="changeme" src="http://www.navioo.com/style/1.gif"></p>
</body>
</html>

           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo HTML
» Image Img