stuart_r
01-10-2001, 02:24 PM
Can someone get this image viewing script to work:- :(
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
count1=1;
var images = new Array(29);
for(var i=1; i<30; i++){
images[i]=new Image;
images[i].src = "pi"+i+".jpg";}
function run(){
animate(1,29,1);}
function animate(s,e,n){
eval("count=count"+n);
if (count>e){ count=s;}
graf="'pi"+count+".jpg'";
window.status=images[count];
f="document.anim"+n+".src=";eval(f+graf);
count++;
eval("count"+n+"=count");}</script>
</head>
<body bgcolor=black>
<center><BR><BR><BR><BR><img src="pi1.jpg" name="anim1"></center>
<script>setInterval("run()",100);</script>
</body>
</html>
Thanks Stuart.....
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
count1=1;
var images = new Array(29);
for(var i=1; i<30; i++){
images[i]=new Image;
images[i].src = "pi"+i+".jpg";}
function run(){
animate(1,29,1);}
function animate(s,e,n){
eval("count=count"+n);
if (count>e){ count=s;}
graf="'pi"+count+".jpg'";
window.status=images[count];
f="document.anim"+n+".src=";eval(f+graf);
count++;
eval("count"+n+"=count");}</script>
</head>
<body bgcolor=black>
<center><BR><BR><BR><BR><img src="pi1.jpg" name="anim1"></center>
<script>setInterval("run()",100);</script>
</body>
</html>
Thanks Stuart.....