Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loadImages: function(imgURL,imageList){
- for (var i = 0; i <= imageList.length - 1; ++i){
- preLoad.yourImages[i] = imgURL + imageList[i];
- }
- for (i = 0; i < preLoad.yourImages.length; i++){
- preLoad.preImages[i] = new Image();
- preLoad.preImages[i].src = preLoad.yourImages[i];
- }}
- document.getElementById("imgPlaceHolder").appendChild(preLoad.preImages[i]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement