Hi

I have great scrip for my webcam which loop through each image. But I am using ftp so there is a bit time delay to display each image to my browser..

What I am trying to do is to check the image size before it display the image, and if the image size is = 0 (kb) then move to the next image in the loop, else continue.
here is the script:
<head>
<script language="JavaScript1.1">
<!--
var slideimages=new Array()
var slidelinks=new Array()

function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages[i]=new Image()
slideimages[i].src=slideshowimages.arguments[i]
}
}
function gotoshow(){
if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks[whichlink])
else
winslide.location=slidelinks[whichlink]
winslide.focus()
}
//-->
</script>
</head>
<body>
<script>
<!--

//configure the paths of the images, plus corresponding target links
slideshowimages("image_00001.jpg","image_00002.jpg","image_00003.jpg","image_00004.jpg","image_00005.jpg","image_00006.jpg","image_00007.jpg","image_00008.jpg","image_00009.jpg","image_00010.jpg")

//configure the speed of the slideshow, in miliseconds
var slideshowspeed=2000
var whichlink=0
var whichimage=0
function slideit(){
if (!document.images)
return
document.images.slide.src=slideimages[whichimage].src
whichlink=whichimage

if (whichimage<slideimages.length-1)
whichimage++

else
whichimage=0
setTimeout("slideit()",slideshowspeed)
}
slideit()

//-->
</script>
</body>

Please I need your help

Thanx