OK, so I know the basic way to preload images:
images = new Image();
images.src = "image_file_name";
But I'm trying to automate use of images by constructing a table with images on the fly; then dumping that into a div.
No problem with the dhtml (javascript) constructing tables with img:s in them.
What I'm having a problem with is assuring that the images are actually loaded before dumping into the div. If they're not, they won't be displayed.
I've tried checking images.complete in a loop until they're all loaded, but that sometimes aggrevates IE into putting up a message that a process has gone on too long.
At present, this approach works (whenever images load quickly enough) in IE and Firefox, but not Opera.
images = new Image();
images.src = "image_file_name";
But I'm trying to automate use of images by constructing a table with images on the fly; then dumping that into a div.
No problem with the dhtml (javascript) constructing tables with img:s in them.
What I'm having a problem with is assuring that the images are actually loaded before dumping into the div. If they're not, they won't be displayed.
I've tried checking images.complete in a loop until they're all loaded, but that sometimes aggrevates IE into putting up a message that a process has gone on too long.
At present, this approach works (whenever images load quickly enough) in IE and Firefox, but not Opera.