You can use this online tool to generate code for a rollover effect that switches from one image to another on mouseover and back to the original image on mouseout.
Try it out: Roll your mouse over the image below.
Make your own: Fill in the form below then click on SHOW. You can use GIF, JPEG, or PNG images (with file extensions ".gif", ".jpeg", or ".png"). The two images do not have to be of the same format. Click on RESET if you want to clear the form and start over.