<script language="JavaScript" type="text/javascript">
var images = new Array('morning.jpg','afternoon.jpg','night.jpg','lightbulb_on.jpg')
var count = -1
function slideShow(){
if (count <=2){
count ++;
}
document.getElementById("show").innerHTML = "<img src="images/"+images[count]+"">"
setTimeout("slideShow()", 3000)
}
</script>
<div id="show">
<script>slideShow()</script>
</div>
That one works with the click event, so you have to change the way it works, setting timers. I usually do it with this code. Hope it helps. I dont put the comment because I cant (low reputation) sorry