Using this technique you can offer users a simple and reliable masthead image with alt text while still offering cool hover/focus effects. This method also preloads the secondary image allowing an instantaneous transition between states. Great for branding images or logos.
Get the XHTML, CSS, source. Go to back to the Mike’s Experiments index.