Head Part:
The head part of this example consists of only one function, showImage. The showImage() function will become more clear when we say the way it's called. The source code in the beginning pre loads the clock images as explained above.
<head>
<title>Image Rollover Example...</title>
<script language="JavaScript"><!--
// pre load images
var clock0, clock1; // to hold light and dark imgs