반응형

PROGRAMMING/JavaScript 26

document.readyState

readyStaet의 속성값 uninitialized = 개체가 데이터로 초기화되지 않았다. loading = 개체에 데이터가 로딩되고 있다. loaded = 개체에 데이터 로딩이 완료되었다. interactive = 개체에 데이터가 완전히 로딩되지 않았어도 사용자가 개체에 적용할 수 있다. complete = 개체의 초기화가 완료되었다. 크롬 d0cument.readyState 위의 5가지 속성중 하나의 값이 나옴 사파리 d0cument.readyState 위의 5가지 속성중 하나의 값이 나옴 오페라 d0cument.readyState 위의 5가지 속성중 하나의 값이 나옴 IE d0cument.readyState 위의 5가지 속성중 하나의 값이 나옴 FireFox d0cument.readyState 지..

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..

반응형