Javascript images pre-loader

on Monday, January 19th, 2009 at 5:49 pm

Here you are, doing a photo gallery and in that photo gallery you have many thumbnails that on click will display the larger picture.
If you are using the simple “document.getElementById(‘someid’).innerHTML=’‘” or many other javascript method to load your images then you have a problem.
When the user click he will have to wait for the image to load and sometimes will see parts of the images opening bit by bit.
This javascript preloader will load all your desired images in the background and so when you call them they are ready to be displayed :)

This will come handy also a lot when doing a javascript slide show… but this will be my next post here :)

Demo: http://joeabiraad.com/demos/preloader/
Files: http://joeabiraad.com/demos/preloader/preloader.rar

Hope it helps
//Jo

2 Comments »

i want to dowmload login form

Comment by tieng rasmey | February 17, 2009 @ 3:04 am

amazing stuff thanx :)

Comment by aSKer | March 10, 2009 @ 5:39 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment