<img id="imgs" src="1.jpg" border=0/>
<script>
setTimeout(imgRoll,3000);
var array = new Array();
var index = 0;
var array = new Array("1.jpg","2.jpg","3.jpg");
function imgRoll() {
var myimg = document.getElementById("imgs");
if(index==array.length-1)
index=0;
else
index++;
myimg.src=array[index];
}
</script>