onMouseOver
and
onMouseOut
See
this page
for a way of preloading the images.
If you can read this, you have JavaScript turned off. Turn it on to see how the examples work