Posted By

oxisound on 02/18/08


Tagged

images preloader load pictures


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

SpinZ
basicmagic
kele5240
wirenaught


Small Images Preloader


 / Published in: JavaScript
 

Wasn't fully tested :) Just for reference...

  1. function picload(){
  2. var imagesl = ['pic1.png','pic2.png','pic3.png'];
  3. var objects = new Array();
  4. for(var i=0;i<imagesl.length;i++){
  5. objects[i] = document.createElement('img');
  6. objects[i].setAttribute('src', "path-to-pics/"+imagesl[i]);
  7. }
  8. }

Report this snippet  

You need to login to post a comment.