Amazinzay
07-27-2007, 04:37 PM
I am working on a web gallery script that uses a javascript crossfade after preloading images. The problem I have is the crossfade script is written in such a way as to only allow one image to crossfade at a time. Any subsequent requests to crossfade an image while the first one is still fading are ignored. This is not a problem until the images are cached, in which case they preload all at the same time and only the first image crossfades and the rest stay on the loading image.
The only solution I can see working is to test the page to see if it is cached and if so skip the crossfades and simply change the image source. Is there any way to do this in javascript?
The only solution I can see working is to test the page to see if it is cached and if so skip the crossfades and simply change the image source. Is there any way to do this in javascript?