Membie
12-08-2002, 09:51 PM
I use this script to preload my images
<script language="JavaScript">
<!--
var g_iimg = new Array("Image1.jpg", "Image2.jpg",
"Etc.jpg")// list images to preload
var preload=new Array() // preloads images
for (i=0;i<=g_iimg.length-1;i++) {
preload[i]=new Image()
preload[i].src=g_iimg[i]
}
// -->
</script>
There are 55 pictures to be preloaded (and more in future), so it 'may' take a while :( for even the first image to be displayed.
Is it possible to display a "Just a moment: images are loading" message, in the center place of where, eventually, the pictures are shown, and just as long as the preloading takes? How?
Great tnkx in adv.
<script language="JavaScript">
<!--
var g_iimg = new Array("Image1.jpg", "Image2.jpg",
"Etc.jpg")// list images to preload
var preload=new Array() // preloads images
for (i=0;i<=g_iimg.length-1;i++) {
preload[i]=new Image()
preload[i].src=g_iimg[i]
}
// -->
</script>
There are 55 pictures to be preloaded (and more in future), so it 'may' take a while :( for even the first image to be displayed.
Is it possible to display a "Just a moment: images are loading" message, in the center place of where, eventually, the pictures are shown, and just as long as the preloading takes? How?
Great tnkx in adv.