View Single Post
03-20-2007, 10:31 AM
#2
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

For a start, you don't want to be preloading images after the onload event has fired -- that's entirely against the point of preloading. You can't automatically specify a folder and have all images (or files) within there preloaded, but you could make it easy by using PHP (or another server-side technology) to spit out the names of the required files into you JavaScript (or CSS) preloading mechanism.