Sorry that’s my second thread on that topic. I try to use an array of Image objects to preload images in memory; and i’m facing a behavior i was not expecting on the navigator side (not exactly the JS side exactly).
In my document, i create JS generated <img> tags, attached as innerHTML to dynamically created DIVs.
I have a pre-loaded array of Image objects, and i want to use this array to change the SRCs of the images in my document.
Code would be something very usual, like :
document.images[key].src = myImageBank[key2].src;
The code works, but the navigator (IE6) acts weird : instead of affecting the src to my document.images AND actually changing the image; it will just affect the src, then *attempt to load the image from the internet
Why would he load the image from the net in the first place? It is supposed to have it available in memory?
Would it have something to do with the fact that i manipulate JS created tags?
So is there a way to directly display my Image objects in my document, without creating an <img> tag for this purpose?
Thank you for your help! ?
Caz