There are many such scripts available around the web. They are generally known as rollovers. The DD version is:
http://www.dynamicdrive.com/dynamicindex15/domroll.htm
Without using any formal script, a single rollover could be done like so:
Code:
<img src="off.gif"
onmouseover="this.src='on.gif';"
onmouseout="this.src='off.gif';><img
style="position:absolute;visibiity:hidden;"
src="on.gif">
The second image tag takes up no space and is invisible. It is only there to 'preload' the rollover image. There are other methods of preloading.
Bookmarks