Forum Moderators: phranque

Message Too Old, No Replies

pre-loading images

         

surrealillusions

9:03 pm on Dec 19, 2008 (gmt 0)

10+ Year Member



Hi all,

I need somehow to pre-load images for a slideshow. I cant pre-load the images on the previous page as this slideshow is on the homepage (where most off site traffic goes to upon visiting the site).

The images are contained in a php array above all the html to generate a random order for the slideshow (which is javascript driven).

I thought this might help rather than sticking the array where the slideshow is in the html, but it doesnt seem to have helped much.

I need a way to stop each image from showing when its loaded, like a pre-load in flash or even get the images to load up behind each other.

Any ideas?

phranque

9:37 pm on Dec 19, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



the best way to preload the images is to invoke some javascript using the body onload action.
how you display the images or not once they have loaded is an entirely separate issue.