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년 전 조회 537
13년 전 조회 594
13년 전 조회 833
13년 전 조회 752
13년 전 조회 543
13년 전 조회 1,387
13년 전 조회 723
13년 전 조회 5,905
13년 전 조회 1,071
13년 전 조회 700
13년 전 조회 1,737
13년 전 조회 549
13년 전 조회 1,474
13년 전 조회 2,947
13년 전 조회 557
13년 전 조회 591
13년 전 조회 675
13년 전 조회 587
13년 전 조회 493
13년 전 조회 745
13년 전 조회 489
13년 전 조회 1,026
13년 전 조회 1,009
13년 전 조회 777
13년 전 조회 521
13년 전 조회 694
13년 전 조회 1,465
13년 전 조회 511
13년 전 조회 2,506
13년 전 조회 2,214
13년 전 조회 2,088
13년 전 조회 1,405
13년 전 조회 709
13년 전 조회 3,847
13년 전 조회 1,714
13년 전 조회 2,133
13년 전 조회 536
13년 전 조회 509
13년 전 조회 1,638
13년 전 조회 629
13년 전 조회 1,859
13년 전 조회 1,548
13년 전 조회 1,327
13년 전 조회 1,253
13년 전 조회 4,649
13년 전 조회 3,080
13년 전 조회 1,448
13년 전 조회 546
13년 전 조회 1,186
13년 전 조회 1,657
13년 전 조회 1,394
13년 전 조회 1,178
13년 전 조회 840
13년 전 조회 500
13년 전 조회 893
13년 전 조회 756
13년 전 조회 581
13년 전 조회 588
13년 전 조회 1,037
13년 전 조회 479
13년 전 조회 437
13년 전 조회 527
13년 전 조회 443
13년 전 조회 1,070
13년 전 조회 767
13년 전 조회 2,283
13년 전 조회 525
13년 전 조회 808
13년 전 조회 1,547
13년 전 조회 729
13년 전 조회 661
13년 전 조회 622
13년 전 조회 733
13년 전 조회 1,136
13년 전 조회 690
13년 전 조회 725
13년 전 조회 1,038
13년 전 조회 844
13년 전 조회 1,456
13년 전 조회 939
13년 전 조회 457
13년 전 조회 1,015
13년 전 조회 4,318
13년 전 조회 614
13년 전 조회 1,106
13년 전 조회 2,746
13년 전 조회 1,332
13년 전 조회 1,700
13년 전 조회 1,328
13년 전 조회 1,988
13년 전 조회 1,395
13년 전 조회 973
13년 전 조회 459
13년 전 조회 1.3만
13년 전 조회 1,236
13년 전 조회 3,373
13년 전 조회 1,006
13년 전 조회 463
13년 전 조회 635
13년 전 조회 451
🐛 버그신고