This script uses the dissolve filter supported by Internet Explorer 4 and later when switching between images. Visitors with other browsers, such as Netscape or Opera, will see a simple substitution of the image.
You will need to create a placeholder image (image0.gif), plus, of course, the images you want to display. I have used two in this example, but there's no reason why you should not increase the number, with a whole row of buttons to switch between them. Here's the code: