1 reply [Last post]
EOBeav
EOBeav's picture
Offline
Regular
Pendleton, Oregon
Last seen: 14 years 3 weeks ago
Pendleton, Oregon
Timezone: GMT-7
Joined: 2004-08-06
Posts: 49
Points: 0

I would like to be able to preload the images that are used in the OnMouseOver command, as opposed to loading them in when the mouse scrolls over the desired area. An unacceptable delay occurs if you wait to load them in.

I found a little javascript code that does this, but haven't been able to make it work. If you'd like to see the code in question, it is in the head section of http://www.consultnw.org/soccer.

Thanks in advance for taking a look.

Get Thunderbird!

Tags:
Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 week 2 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Preloading OnMouseOver images

Hi EOBeav,
I really like Pixy's rollover method, found here: http://wellstyled.com/css-nopreload-rollovers.html

You don't need to preload as all the rollover states are in the same image.

Hope that helps