Good lord, I am about to cry...
I am trying to make a simple (or, so I thought) slideshow, which displays up to four images, about 30k each. As far as I can tell, this should be easy using the following method:
Code:
var newImg = new Image();
newImg.src = "images/testImg.jpg";
BUT! It would seem that IE has a prolem with this, and downloads the images again each time it is called for display. (I believe Netscape executes the script correctly.) This wouldn't be a problem with a 2 or 3k image, but since these images are 30k+, there is a slight lag time between clicking the "Next Image" button and displaying the image. I have read another way of doing this here, but I can't seem to get a handle on this example.
Can anyone help me? I am going crazy trying to figure this out!
|