Posts filed under ‘JavaScript’

Simple JavaScript Image Preloader

Add this code at the bottom of the page, creating a new variable for each image you wish to be preloaded.

function ImagePreloader( imgSrc )
{
    var preloadedImage = new Image;

    preloadedImage.src = imgSrc;

}

Cognize Web Design Services

May 5, 2008 at 4:18 pm Leave a comment


Calendar

June 2017
M T W T F S S
« May    
 1234
567891011
12131415161718
19202122232425
2627282930  

Posts by Month

Posts by Category