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.
|