
Swap Images With JavaScript
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