Fred Endsley

JavaScript: Image Rollover That Changes Back

This page uses a JavaScript that allows the image below to be changed to another image when it is rolled over. When the rollover is not true, the image changes back to the original. In this case, the Gif images are opaque. If they had transparent backgrounds, they would appear layered.

The variables and functions are defined in the head; the onMouseOver and onMouseOut events are in the link tag, which, again, is linked to the same page so that it can reload the original image. However, it could be linked to any URL.


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