A nice touch to a Web page is a button that changes appearance when clicked. All you need is two GIFs and a little JavaScript. The following code initially displays the Microsoft logo. When you click the image the onclick event calls the swapImage() function. The function determines the image that is currently showing and switches the SRC attribute to the alternate image. In this case, the alternate image is the MSDN logo.
