Back Up | Rollover preloads (eugh)! |
Okay, we have to admit to an unreasonable prejudice against rollovers.
This is not because they are necessarily hideous, like the
one on the right - it's just that they're so overused!
As we've hinted previously (hidden deep in
part3), it's possible to speed things up a bit
by preloading the images - view the source of the current page for
details. The basic idea is:
|
1. Preload the image |
rollnew = new Image(); rollnew.src = "whatever.gif"; |
2. Use OnMouseOver to do the rollover: |
<a href="xxx.htm" onMouseOver="fred.src=rollnew.src;" > <img src="abc.htm" name="fred" ></a> |