Thanatos
06-07-2003, 11:38 AM
Hello everyone.
I have created this slideshow for a website using javascript only. I implemented it by changing the "src" of a particular image every 5 seconds. However, I have a little issue. The slideshow doesn't work too well with slow (say 56k) internet connections. It simply takes too long for the next image to load.
I did the slideshow as a java applet previously and I didn't have that issue because the applet would store all the images in internal structures during initialization. Therefore, initialization would take a while but the slideshow would run without hiccoughs after that. I reimplemented it in javascript becuase too many browsers didn't support java or had applets turned off.
Anyway, my question is this. Can I force a one time initialization of all the images while the page loads? I want a situation where the page takes a while to load (on slow connections) but the slideshow runs smoothly once it begins.
Thanks for your help.
I have created this slideshow for a website using javascript only. I implemented it by changing the "src" of a particular image every 5 seconds. However, I have a little issue. The slideshow doesn't work too well with slow (say 56k) internet connections. It simply takes too long for the next image to load.
I did the slideshow as a java applet previously and I didn't have that issue because the applet would store all the images in internal structures during initialization. Therefore, initialization would take a while but the slideshow would run without hiccoughs after that. I reimplemented it in javascript becuase too many browsers didn't support java or had applets turned off.
Anyway, my question is this. Can I force a one time initialization of all the images while the page loads? I want a situation where the page takes a while to load (on slow connections) but the slideshow runs smoothly once it begins.
Thanks for your help.