Preloading the rollover image(s) is a good idea. However, the main problem with this code is that I copied some of the typos from Nile's monstrosity, which he in turn had copied from you. Notably this.scr for what should have been this.src. Here is the corrected version (sorry for the error):
Code:
<a href="some.htm"><img border=0 src="book.gif"
onmouseover="this.src='book2.gif';"
onmouseout="this.src='book.gif';"></a>
If this the only rollover you have, a simple preload for it would be a script like this in the head of your page:
Code:
<script type="text/javascript">
var book_rollover=new Image();
book_rollover.src='book2.gif';
</script>
Bookmarks