웹 페이지의 보이는 영역 너비 : Document.body.clientWidth
웹 페이지의 보이는 영역 높이 : document.body.clientHeight
웹 페이지의 보이는 영역 너비 : document.body.offsetwidth (가장자리 선의 너비 포함)
웹 페이지의 보이는 영역 높이 : Document.body.offSetheight (가장자리 선의 높이 포함)
웹 페이지의 전체 텍스트 너비 : document.body.scrollwidth
웹 페이지의 전체 텍스트 : document.body.scrollheight
웹 페이지는 높은 수준으로 롤아웃됩니다 : document.body.scrolltop
롤아웃중인 웹 페이지의 왼쪽 : document.body.scrollleft
웹 페이지의 기본 부분 : Window.screentop
웹 페이지의 본문 왼쪽 : Window.screenLeft
높은 화면 해상도 : Window.Screen.height
화면 해상도의 너비 : Window.Screen.width
사용 가능한 작업 공간 높이 : Window.Screen.availHeight
사용 가능한 작업 공간 너비 : Window.Screen.availWidth
나는 이런 것들을 기억할 수 없기 때문에, 내가 그들을 돌리고 자주 읽으면 기억할 수 있습니다.
이를 통해 이미지 코드를 동적으로로드 할 수 있습니다
코드 사본은 다음과 같습니다.
document.onmousewheel = function () {
var scrolltop = document.documentElement.scrolltop || document.body.scrolltop;
var hght = document.body.scrollheight;
if (scrolltop + document.documentElement.clientHeight> = hght) {
/*여기에 그림을로드하려면 코드를 작성하십시오*/
}