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년 전 조회 561
13년 전 조회 621
13년 전 조회 865
13년 전 조회 783
13년 전 조회 565
13년 전 조회 1,410
13년 전 조회 750
13년 전 조회 5,932
13년 전 조회 1,107
13년 전 조회 733
13년 전 조회 1,757
13년 전 조회 576
13년 전 조회 1,500
13년 전 조회 2,979
13년 전 조회 586
13년 전 조회 609
13년 전 조회 707
13년 전 조회 614
13년 전 조회 512
13년 전 조회 770
13년 전 조회 512
13년 전 조회 1,052
13년 전 조회 1,033
13년 전 조회 801
13년 전 조회 559
13년 전 조회 714
13년 전 조회 1,488
13년 전 조회 536
13년 전 조회 2,523
13년 전 조회 2,241
13년 전 조회 2,127
13년 전 조회 1,433
13년 전 조회 735
13년 전 조회 3,881
13년 전 조회 1,740
13년 전 조회 2,164
13년 전 조회 573
13년 전 조회 528
13년 전 조회 1,660
13년 전 조회 658
13년 전 조회 1,882
13년 전 조회 1,571
13년 전 조회 1,354
13년 전 조회 1,286
13년 전 조회 4,677
13년 전 조회 3,108
13년 전 조회 1,475
13년 전 조회 567
13년 전 조회 1,209
13년 전 조회 1,686
13년 전 조회 1,418
13년 전 조회 1,206
13년 전 조회 865
13년 전 조회 532
13년 전 조회 924
13년 전 조회 783
13년 전 조회 608
13년 전 조회 610
13년 전 조회 1,062
13년 전 조회 502
13년 전 조회 464
13년 전 조회 553
13년 전 조회 469
13년 전 조회 1,093
13년 전 조회 786
13년 전 조회 2,303
13년 전 조회 553
13년 전 조회 828
13년 전 조회 1,569
13년 전 조회 753
13년 전 조회 698
13년 전 조회 647
13년 전 조회 755
13년 전 조회 1,159
13년 전 조회 717
13년 전 조회 751
13년 전 조회 1,066
13년 전 조회 868
13년 전 조회 1,484
13년 전 조회 966
13년 전 조회 472
13년 전 조회 1,039
13년 전 조회 4,348
13년 전 조회 633
13년 전 조회 1,138
13년 전 조회 2,771
13년 전 조회 1,356
13년 전 조회 1,727
13년 전 조회 1,353
13년 전 조회 2,016
13년 전 조회 1,417
13년 전 조회 1,011
13년 전 조회 484
13년 전 조회 1.3만
13년 전 조회 1,263
13년 전 조회 3,398
13년 전 조회 1,035
13년 전 조회 488
13년 전 조회 661
13년 전 조회 478
🐛 버그신고