Switching Images With Style: ImageSwitch
jQuery has built-in animations & effects. But when it comes to switching between 2 objects, you may need to code a little more for a flawless display.
ImageSwitch is an easy to use jQuery plugin for switching between images using effects.
The plugin supports various effects like fade in/out, fly in/out, flip in/out, scroll in/out, single door & double door.
And, the code of the plugin is well-commented which makes it easier to improve it.
Tip: Besides the Groject.ImageSwitch.js, check this .js file too to better findout how the plugin works.