Javascript Example
Screen shot
Javascript slide show

<html>
<head>
<title>Slide Show</title>
<script language="javascript" type="text/javascript">
var myimages=new Array();
function images()
{
for (i=0;i<images.arguments.length;i++)
{
myimages[i]=new Image();
myimages[i].src=images.arguments[i];
}
}
</script>
</head>

<body>
<img src="images/img1.jpeg" name="slide" border=0 width=300 height=375>
<script language="javascript" type="text/javascript">
images("images/img1.jpeg","images/img2.jpeg","images/img3.jpeg","images/img4.jpeg","images/img1.jpeg")
var count=0;
function slideshow()
{
document.images.slide.src=myimages[count].src;
if (count<myimages.length-1)
count++;
else
count=0;
setTimeout("slideshow()",2000);
}
slideshow();
</script>
</body>
</html>

You can download source code here