Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
However, if you're going to use a Server Language to read all the files, then write the JavaScript, you might as well just be using it to write HTML. The way I usually preload images, is with regular CSS:
CSS
Code:
.preload {
position: absolute;
left: -9999px;
}
HTML Code:
<div class="preload">
<!--put as many images as you like here-->
</div>
When images are positioned off-screen, the browser still loads them into memory.
Last edited by wayfarer07; 11-19-2008 at 01:22 PM..
|