<script language="javascript" type="text/ecmascript"> //Declare golobal variable var index = 0; var dispStatus = "Play"; var resetDesplay; var timeInerval = 2000; //Function to set net image from the array of image list function SetNextImage() { timeInerval = document.getElementById("hdnTimeOut").value; var imageArray = document.getElementById("hdnImage").value.split('|'); document.getElementById("imageMain").src = imageArray[index]; if (index >= imageArray.length - 1) { index = 0; } else { index++; } //Recussive call of function with time out if (dispStatus == "Play") { resetDesplay = setTimeout("SetNextImage()", timeInerval); } } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)