<html>
<head>
<title> Images view </title>
</head>
<body>
<script type="text/javascript">
var images = new Array();
var i = 0;
images[0] = './images/1.jpg';
images[1] = './images/2.jpg';
images[2] = './images/3.jpg';
function viewImages() {
document.getElementById("img_main").src = images[i];
i++;
if (i == images.length) {
i = 0;
}
setTimeout("viewImages()",5000);
}
</script>
<img src="" id="img_main">
<script> viewImages(); </script>
</body>
</html>