Posted By

fael on 09/09/07


Tagged

image preloader


Versions (?)

Who likes this?

15 people have marked this snippet as a favorite

luman
basicmagic
fael
markupmark
neuroasis
vali29
buscarini
SpinZ
oldmeaty
Pixelpower
fackz
masondixon
seanpowell
guo3823538
wirenaught


Images preloader


 / Published in: JavaScript
 

Another image preloader.

  1. var images = new Array();
  2.  
  3. function preloadImages(){
  4. for (i=0; i < preloadImages.arguments.length; i++){
  5. images[i] = new Image();
  6. images[i].src = preloadImages.arguments[i];
  7. }
  8. }
  9.  
  10. preloadImages("logo.jpg", "main_bg.jpg", "body_bg.jpg", "header_bg.jpg");

Report this snippet  

You need to login to post a comment.