How can I change the source of an image but preload it first
Hi.
I have a gallery powered by jquery. When you're viewing an image, you have thumbnail links to click on below. When you click one, I change the main image's source to the full version of the thumbnail you clicked on. This works rather great. Problem is, I want to show some sort of loading gif before the new image arrives. As of right now, when you click a thumbnail, there's no visual indication that it worked until the new image appears.
Is there any way to show a loading gif until the new image loads, and then show the new image?
If anyone can help, I'd appreciate it
