Many sites include rollover effects to make images change when the mouse moves over them. However, sometimes there’s an unsightly delay while the second graphic is downloaded from the server. You can avoid this delay with some scripting code to make the client’s browser to load the second graphic at the same time as the page.
Call it by including ONLOAD=”loader()” in the page’stag and it will load five graphics into the array preLoad ready for displaying. The code can easily be extended to cope with pre-loading as many graphics as you need.