<html>
<head>
<title>citi2</title>
<script language="javascript">
<!--
imgArray = new Array("citi21.jpg","citi22.jpg","citi23.jpg","citi24.jpg",
"citi25.jpg","citi26.jpg","citi27.jpg","citi28.jpg","citi29.jpg");
baseURL = "http://www.rocket99.com/jscript/";
numImages = 9; // number of different image files used in animation.
imageidx = 0;
/*---------------------------------------------------------------*/
function f_timer()
{
imageidx ++ ;
if (imageidx==9)
{
imageidx=0
} ;
document.images[0].src = baseURL + "citi2" + (imageidx + 1) + ".jpg";
timerID = setTimeout("f_timer()", 150);
}
/*---------------------------------------------------------------*/
// -->
</script>
</head>
<body>
<hr>
<center>
<h3>Javascript 101: Animation Example</h3>
Javascript Prototype
<p>
<hr>
<img src="http://www.rocket99.com/jscript/citi21.jpg" hspace="50" alt="citi2" height="130" width="130" border="0">
</center>
<script language="javascript">
<!--
// -->
</script>
<hr>
</body>
<SCRIPT>
<!--
timerID = setTimeout("f_timer()", 3000);
//-->
</SCRIPT>
</html>
Javascript 101: Animation Example
Javascript Prototype
|
|