D

getHtmlInfo

function getHtmlInfo()
{
var obj = {
clientHeight : 0, 
clientWidth : 0,  
scrollHeight : 0, 
scrollWidth : 0,  
scrollLeft : 0,   
scrollTop : 0,    
offsetHeight : 0, 
offsetWidth : 0 ,
screenX:0,
screenY:0
};

if (document.documentElement){
obj.clientHeight = parseInt(document.documentElement.clientHeight);
obj.clientWidth = parseInt(document.documentElement.clientWidth);
obj.scrollHeight = parseInt(document.documentElement.scrollHeight);
obj.scrollWidth = parseInt(document.documentElement.scrollWidth);

if(navigator.userAgent.indexOf("Chrome")  != -1) {
obj.scrollLeft = parseInt(document.body.scrollLeft);
obj.scrollTop = parseInt(document.body.scrollTop);
} else {
obj.scrollLeft = parseInt(document.documentElement.scrollLeft);
obj.scrollTop = parseInt(document.documentElement.scrollTop);
}
if(navigator.appName=="Netscape"){
if(navigator.userAgent.indexOf("Chrome")  != -1) {
obj.offsetHeight = parseInt(document.body.scrollTop);
obj.offsetWidth = parseInt(document.body.scrollLeft);
} else {
obj.offsetHeight = parseInt(document.documentElement.clientHeight);
obj.offsetWidth = parseInt(document.documentElement.clientWidth);
}
if(navigator.appName.indexOf("Microsoft") != -1) {
obj.offsetHeight = parseInt(document.documentElement.offsetHeight);
obj.offsetWidth = parseInt(document.documentElement.offsetWidth);
}
//if(document.body.offsetHeight) obj.offsetHeight = parseInt(document.documentElement.offsetHeight);
//else obj.offsetHeight = parseInt(document.documentElement.clientHeight);
//if(document.body.offsetWidth) obj.offsetWidth = parseInt(document.documentElement.offsetWidth);
//else obj.offsetWidth = parseInt(document.documentElement.clientWidth);

obj.screenX = parseInt(screen.width);
//alert(screen.height);
obj.screenY = parseInt(screen.height);
//alert("HEIGHT : " + document.documentElement.clientHeight);
} else if (document.body){
obj.clientHeight = parseInt(document.body.clientHeight);
obj.clientWidth = parseInt(document.body.clientWidth);
obj.scrollHeight = parseInt(document.body.scrollHeight);
obj.scrollWidth = parseInt(document.body.scrollWidth);
obj.scrollLeft = parseInt(document.body.scrollLeft);
obj.scrollTop = parseInt(document.body.scrollTop);

obj.offsetHeight = parseInt(document.body.offsetHeight);
obj.offsetWidth = parseInt(document.body.offsetWidth);
obj.screenX = parseInt(screen.width);
obj.screenY = parseInt(screen.height);

}else{
//[Netscape stuff]
}

return obj;
}
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

태그 필터 (최대 3개) 전체 개발자 소스 기타 mysql 팁자료실 javascript php linux flash 정규표현식 jquery node.js mobile 웹서버 os 프로그램 강좌 썸네일 이미지관련 도로명주소 그누보드5 기획자 견적서 계약서 기획서 마케팅 제안서 seo 통계 서식 통계자료 퍼블리셔 html css 반응형 웹접근성 퍼블리싱 표준화 반응형웹 홈페이지기초 부트스트랩 angularjs 포럼 스크린리더 센스리더 개발자톡 개발자팁 퍼블리셔톡 퍼블리셔팁 기획자톡 기획자팁 프로그램강좌 퍼블리싱강좌
+
제목 글쓴이 날짜 조회
13년 전 조회 1,057
13년 전 조회 1,126
13년 전 조회 1,379
13년 전 조회 1,285
13년 전 조회 1,090
13년 전 조회 1,890
13년 전 조회 1,276
13년 전 조회 6,461
13년 전 조회 1,616
13년 전 조회 1,253
13년 전 조회 2,271
13년 전 조회 1,073
13년 전 조회 2,022
13년 전 조회 3,530
13년 전 조회 1,085
13년 전 조회 1,104
13년 전 조회 1,200
13년 전 조회 1,116
13년 전 조회 1,015
13년 전 조회 1,272
13년 전 조회 1,012
13년 전 조회 1,558
13년 전 조회 1,527
13년 전 조회 1,294
13년 전 조회 1,050
13년 전 조회 1,234
13년 전 조회 1,993
13년 전 조회 1,000
13년 전 조회 3,004
13년 전 조회 2,717
13년 전 조회 2,615
13년 전 조회 1,917
13년 전 조회 1,230
13년 전 조회 4,361
13년 전 조회 2,199
13년 전 조회 2,664
13년 전 조회 1,039
13년 전 조회 980
13년 전 조회 2,110
13년 전 조회 1,135
13년 전 조회 2,368
13년 전 조회 2,031
13년 전 조회 1,843
13년 전 조회 1,744
13년 전 조회 5,183
13년 전 조회 3,557
13년 전 조회 1,920
13년 전 조회 1,003
13년 전 조회 1,667
13년 전 조회 2,157
13년 전 조회 1,870
13년 전 조회 1,670
13년 전 조회 1,347
13년 전 조회 997
13년 전 조회 1,403
13년 전 조회 1,258
13년 전 조회 1,081
13년 전 조회 1,053
13년 전 조회 1,516
13년 전 조회 989
13년 전 조회 930
13년 전 조회 1,022
13년 전 조회 936
13년 전 조회 1,559
13년 전 조회 1,280
13년 전 조회 2,773
13년 전 조회 1,023
13년 전 조회 1,291
13년 전 조회 2,074
13년 전 조회 1,232
13년 전 조회 1,156
13년 전 조회 1,112
13년 전 조회 1,240
13년 전 조회 1,618
13년 전 조회 1,187
13년 전 조회 1,234
13년 전 조회 1,537
13년 전 조회 1,355
13년 전 조회 1,960
13년 전 조회 1,439
13년 전 조회 964
13년 전 조회 1,535
13년 전 조회 4,848
13년 전 조회 1,163
13년 전 조회 1,703
13년 전 조회 3,302
13년 전 조회 1,917
13년 전 조회 2,250
13년 전 조회 1,878
13년 전 조회 2,554
13년 전 조회 1,973
13년 전 조회 1,556
13년 전 조회 1,033
13년 전 조회 1.4만
13년 전 조회 1,809
13년 전 조회 3,952
13년 전 조회 1,585
13년 전 조회 1,036
13년 전 조회 1,195
13년 전 조회 1,025