[thelist] Images aren't preloading

.jeff jeff at members.evolt.org
Sun Jul 21 17:04:01 CDT 2002


dave,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Dave Stevens
>
> Could you check out http://www.flipcycle.com/home.html
> and specifically the bottom frame. The images (news,
> gigs, info, etc) have rollovers which should be
> preloaded by the javascript in the <head> section.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

they're preloaded alright, but they're attached to variables that aren't used anywhere.  additionally, the mouse over and mouse out events change image src to an image path.  so, while the path is the same, the browser doesn't know you want to use the ones it's already loaded in memory and attached to variables so it goes and fetches them again.

have your friend use this instead:

http://members.evolt.org/jeff/code/preload_n_rollover/index.cfm

good luck,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list