Click to See Complete Forum and Search --> : javascript slide show


milily
02-24-2003, 11:49 PM
Hi all,

I finished my slide show program with javascript. But I found a big problem. Whenever the picture changes, the computer need to load the next slide again although that slide already showed before. Why the pictures are not saved in the computer when the first time they were showed? Is it possible to preload all the slides at the begging and save them in the computer so that the system needn't load the same pictures again and again. Thank you very much.

Nicodemas
02-25-2003, 03:41 AM
In a sense, I suppose it is up to how the user's browser is set up. But their is a way to preload images in a slideshow, but anything else and I don't think so.

in your javascript, you would use:

var img1 = new Image();
img1.src = "path_to_file_goes_here";
and so on for each image in your slide show.


Hope this helps.