Fred Endsley

JavaScript: Buttons to Change Images

This page uses a JavaScript that allows the image below to be changed to another image when a button is pushed. In this case, the Gif images are opaque. If they had transparent backgrounds or colors, they would appear layered.

The variables and functions are defined in the head; the onClick events are in the FORM INPUT button tag.


ButBack.jpeg (1047bytes) ButHome.jpeg (3977bytes)