Because it's not working...
I want a condition where if only the images are all preloaded then the slide
show will work:
<script type="text/javascript">
var imagesdone=fals e;
window.onload=l oadimages;
function loadimages() {
var images=new Array();
for (var i=0;i<myImages. length;i++) {
images[i]=new Image();
images[i].src=myImages[i];
}
imagesdone=true ;
}
// This is an onClick event
function startslideshow( ) {
if (imagesdone) {
do slideshow stuff
} else {
alert('Sorry, images are not loaded for viewing yet')
}
}
</script>
I want a condition where if only the images are all preloaded then the slide
show will work:
<script type="text/javascript">
var imagesdone=fals e;
window.onload=l oadimages;
function loadimages() {
var images=new Array();
for (var i=0;i<myImages. length;i++) {
images[i]=new Image();
images[i].src=myImages[i];
}
imagesdone=true ;
}
// This is an onClick event
function startslideshow( ) {
if (imagesdone) {
do slideshow stuff
} else {
alert('Sorry, images are not loaded for viewing yet')
}
}
</script>
Comment