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년 전 조회 631
13년 전 조회 689
13년 전 조회 927
13년 전 조회 843
13년 전 조회 634
13년 전 조회 1,472
13년 전 조회 826
13년 전 조회 5,993
13년 전 조회 1,166
13년 전 조회 796
13년 전 조회 1,827
13년 전 조회 648
13년 전 조회 1,576
13년 전 조회 3,045
13년 전 조회 650
13년 전 조회 664
13년 전 조회 759
13년 전 조회 682
13년 전 조회 579
13년 전 조회 833
13년 전 조회 585
13년 전 조회 1,127
13년 전 조회 1,090
13년 전 조회 875
13년 전 조회 628
13년 전 조회 784
13년 전 조회 1,564
13년 전 조회 604
13년 전 조회 2,584
13년 전 조회 2,310
13년 전 조회 2,187
13년 전 조회 1,501
13년 전 조회 795
13년 전 조회 3,944
13년 전 조회 1,797
13년 전 조회 2,226
13년 전 조회 635
13년 전 조회 601
13년 전 조회 1,716
13년 전 조회 728
13년 전 조회 1,949
13년 전 조회 1,632
13년 전 조회 1,424
13년 전 조회 1,349
13년 전 조회 4,759
13년 전 조회 3,175
13년 전 조회 1,540
13년 전 조회 621
13년 전 조회 1,281
13년 전 조회 1,759
13년 전 조회 1,477
13년 전 조회 1,272
13년 전 조회 935
13년 전 조회 602
13년 전 조회 999
13년 전 조회 856
13년 전 조회 681
13년 전 조회 673
13년 전 조회 1,139
13년 전 조회 570
13년 전 조회 535
13년 전 조회 624
13년 전 조회 530
13년 전 조회 1,164
13년 전 조회 864
13년 전 조회 2,379
13년 전 조회 617
13년 전 조회 894
13년 전 조회 1,641
13년 전 조회 813
13년 전 조회 769
13년 전 조회 713
13년 전 조회 819
13년 전 조회 1,224
13년 전 조회 786
13년 전 조회 811
13년 전 조회 1,139
13년 전 조회 933
13년 전 조회 1,550
13년 전 조회 1,037
13년 전 조회 552
13년 전 조회 1,097
13년 전 조회 4,409
13년 전 조회 704
13년 전 조회 1,203
13년 전 조회 2,842
13년 전 조회 1,429
13년 전 조회 1,790
13년 전 조회 1,422
13년 전 조회 2,083
13년 전 조회 1,490
13년 전 조회 1,076
13년 전 조회 548
13년 전 조회 1.3만
13년 전 조회 1,339
13년 전 조회 3,474
13년 전 조회 1,105
13년 전 조회 555
13년 전 조회 732
13년 전 조회 541
🐛 버그신고