반응형

JavaScript 10

javascript 이미지 로딩 체크하는 방법은???

[이미지로딩 체크] // allImagesLoaded() // Checks if all the images are loaded in the document // It Does this by looping through all the images and checks the attribute .complete // If .complete is false then we set the return variable to 0 function allImagesLoaded() { // return variable var imagesloaded = 1; // All images are saved in an array called document.images. Very usefull var images = document..

반응형