You might have noticed that on some pages with mouseOvers, it takes a little while for the graphic to download. I think that's ok for the first time, but when a request for the graphic is going back to the server every time I move my mouse, that's a problem. It's just downright annoying. What's the solution? "Preload" your graphics so they're already in cache when the visitor moves their mouse. That way, you avoid having to load it every single time. Here's a simple script for it:
[tt]<SCRIPT>
<!--
// declare new images
var yourImageNormal = new Image();
var yourImageOver = new Image();
Try that, see if it works. You'll probably see a lot of different mouseOver scripts floating around the web, but make sure yours is a preloading script.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.