I've recently written a quick JavaScript for a slideshow:


(the javascript is embedded right into the HTML file)

The thing is, I'm not sure wether this is the best way to preload images. What should I do to load them only when the user clicks the prev/next buttons?

I'd like also some input if your browser can't execute correctly the script-- I've only tested it in MSIE 5.x. Thanks everyone ^^