Return to Snippet

Revision: 5200
at February 18, 2008 17:05 by oxisound


Initial Code
function picload(){
  var imagesl = ['pic1.png','pic2.png','pic3.png'];
  var objects = new Array();
  for(var i=0;i<imagesl.length;i++){
    objects[i] = document.createElement('img');
    objects[i].setAttribute('src', "path-to-pics/"+imagesl[i]);
  }
}

Initial URL

                                

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

Initial Title
Small Images Preloader

Initial Tags
images, load

Initial Language
JavaScript