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년 전 조회 645
13년 전 조회 701
13년 전 조회 939
13년 전 조회 858
13년 전 조회 645
13년 전 조회 1,485
13년 전 조회 834
13년 전 조회 6,009
13년 전 조회 1,175
13년 전 조회 806
13년 전 조회 1,836
13년 전 조회 657
13년 전 조회 1,584
13년 전 조회 3,055
13년 전 조회 665
13년 전 조회 676
13년 전 조회 775
13년 전 조회 690
13년 전 조회 588
13년 전 조회 846
13년 전 조회 597
13년 전 조회 1,134
13년 전 조회 1,102
13년 전 조회 883
13년 전 조회 641
13년 전 조회 791
13년 전 조회 1,575
13년 전 조회 619
13년 전 조회 2,600
13년 전 조회 2,321
13년 전 조회 2,195
13년 전 조회 1,511
13년 전 조회 806
13년 전 조회 3,961
13년 전 조회 1,812
13년 전 조회 2,237
13년 전 조회 644
13년 전 조회 614
13년 전 조회 1,726
13년 전 조회 738
13년 전 조회 1,960
13년 전 조회 1,646
13년 전 조회 1,435
13년 전 조회 1,357
13년 전 조회 4,768
13년 전 조회 3,185
13년 전 조회 1,550
13년 전 조회 635
13년 전 조회 1,298
13년 전 조회 1,775
13년 전 조회 1,490
13년 전 조회 1,279
13년 전 조회 953
13년 전 조회 613
13년 전 조회 1,012
13년 전 조회 867
13년 전 조회 692
13년 전 조회 688
13년 전 조회 1,149
13년 전 조회 588
13년 전 조회 543
13년 전 조회 631
13년 전 조회 542
13년 전 조회 1,176
13년 전 조회 875
13년 전 조회 2,395
13년 전 조회 630
13년 전 조회 908
13년 전 조회 1,652
13년 전 조회 832
13년 전 조회 782
13년 전 조회 719
13년 전 조회 834
13년 전 조회 1,236
13년 전 조회 795
13년 전 조회 831
13년 전 조회 1,153
13년 전 조회 948
13년 전 조회 1,568
13년 전 조회 1,046
13년 전 조회 566
13년 전 조회 1,105
13년 전 조회 4,420
13년 전 조회 714
13년 전 조회 1,218
13년 전 조회 2,857
13년 전 조회 1,437
13년 전 조회 1,798
13년 전 조회 1,432
13년 전 조회 2,094
13년 전 조회 1,503
13년 전 조회 1,089
13년 전 조회 559
13년 전 조회 1.3만
13년 전 조회 1,349
13년 전 조회 3,483
13년 전 조회 1,116
13년 전 조회 569
13년 전 조회 747
13년 전 조회 553
🐛 버그신고