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년 전 조회 675
13년 전 조회 750
13년 전 조회 979
13년 전 조회 897
13년 전 조회 691
13년 전 조회 1,526
13년 전 조회 877
13년 전 조회 6,050
13년 전 조회 1,220
13년 전 조회 847
13년 전 조회 1,884
13년 전 조회 698
13년 전 조회 1,625
13년 전 조회 3,104
13년 전 조회 713
13년 전 조회 723
13년 전 조회 821
13년 전 조회 736
13년 전 조회 640
13년 전 조회 896
13년 전 조회 644
13년 전 조회 1,186
13년 전 조회 1,146
13년 전 조회 921
13년 전 조회 677
13년 전 조회 840
13년 전 조회 1,613
13년 전 조회 662
13년 전 조회 2,640
13년 전 조회 2,363
13년 전 조회 2,234
13년 전 조회 1,557
13년 전 조회 860
13년 전 조회 4,011
13년 전 조회 1,853
13년 전 조회 2,281
13년 전 조회 685
13년 전 조회 650
13년 전 조회 1,776
13년 전 조회 780
13년 전 조회 2,012
13년 전 조회 1,683
13년 전 조회 1,484
13년 전 조회 1,400
13년 전 조회 4,808
13년 전 조회 3,225
13년 전 조회 1,595
13년 전 조회 677
13년 전 조회 1,334
13년 전 조회 1,806
13년 전 조회 1,541
13년 전 조회 1,331
13년 전 조회 1,005
13년 전 조회 653
13년 전 조회 1,061
13년 전 조회 909
13년 전 조회 738
13년 전 조회 725
13년 전 조회 1,195
13년 전 조회 643
13년 전 조회 581
13년 전 조회 667
13년 전 조회 590
13년 전 조회 1,216
13년 전 조회 918
13년 전 조회 2,431
13년 전 조회 672
13년 전 조회 951
13년 전 조회 1,691
13년 전 조회 878
13년 전 조회 823
13년 전 조회 770
13년 전 조회 883
13년 전 조회 1,275
13년 전 조회 837
13년 전 조회 881
13년 전 조회 1,198
13년 전 조회 1,005
13년 전 조회 1,619
13년 전 조회 1,089
13년 전 조회 610
13년 전 조회 1,154
13년 전 조회 4,466
13년 전 조회 760
13년 전 조회 1,265
13년 전 조회 2,910
13년 전 조회 1,476
13년 전 조회 1,847
13년 전 조회 1,482
13년 전 조회 2,140
13년 전 조회 1,554
13년 전 조회 1,129
13년 전 조회 613
13년 전 조회 1.3만
13년 전 조회 1,403
13년 전 조회 3,538
13년 전 조회 1,157
13년 전 조회 617
13년 전 조회 780
13년 전 조회 614