Wed Sep 14, 2011 12:25 am
<html>
<title>Images ImagesSlides</title>
<script language="JavaScript" type="text/javascript">
var imgsSlider = new Array('1.jpg','2.jpg','1.jpg','3.jpg','3.jpg');
var iteration = 0;
var size=4;
function imageSlider(){
if (iteration <=size)
{
iteration ++;
}else if(iteration>size){
iteration=0;
}
// set the image in the slide show.
document.getElementById("sliders").innerHTML = "<img src=\""+imgsSlider[iteration]+"\" width=200 height=200 >";
// sleep for two seconds.
setTimeout("imageSlider()", 2000);
}
</script>
<div id="sliders" />
<script>imageSlider();</script>
</div>
</body>
</html>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.