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년 전 조회 883
13년 전 조회 943
13년 전 조회 1,184
13년 전 조회 1,100
13년 전 조회 891
13년 전 조회 1,702
13년 전 조회 1,074
13년 전 조회 6,267
13년 전 조회 1,417
13년 전 조회 1,053
13년 전 조회 2,099
13년 전 조회 906
13년 전 조회 1,834
13년 전 조회 3,338
13년 전 조회 892
13년 전 조회 925
13년 전 조회 1,017
13년 전 조회 931
13년 전 조회 836
13년 전 조회 1,086
13년 전 조회 842
13년 전 조회 1,368
13년 전 조회 1,325
13년 전 조회 1,118
13년 전 조회 852
13년 전 조회 1,039
13년 전 조회 1,806
13년 전 조회 847
13년 전 조회 2,849
13년 전 조회 2,561
13년 전 조회 2,425
13년 전 조회 1,733
13년 전 조회 1,044
13년 전 조회 4,192
13년 전 조회 2,030
13년 전 조회 2,498
13년 전 조회 874
13년 전 조회 837
13년 전 조회 1,949
13년 전 조회 977
13년 전 조회 2,225
13년 전 조회 1,891
13년 전 조회 1,686
13년 전 조회 1,614
13년 전 조회 5,054
13년 전 조회 3,409
13년 전 조회 1,782
13년 전 조회 867
13년 전 조회 1,517
13년 전 조회 2,025
13년 전 조회 1,738
13년 전 조회 1,522
13년 전 조회 1,192
13년 전 조회 847
13년 전 조회 1,261
13년 전 조회 1,105
13년 전 조회 924
13년 전 조회 923
13년 전 조회 1,373
13년 전 조회 825
13년 전 조회 773
13년 전 조회 862
13년 전 조회 785
13년 전 조회 1,401
13년 전 조회 1,123
13년 전 조회 2,612
13년 전 조회 858
13년 전 조회 1,141
13년 전 조회 1,934
13년 전 조회 1,078
13년 전 조회 1,008
13년 전 조회 948
13년 전 조회 1,088
13년 전 조회 1,470
13년 전 조회 1,033
13년 전 조회 1,080
13년 전 조회 1,374
13년 전 조회 1,183
13년 전 조회 1,798
13년 전 조회 1,270
13년 전 조회 797
13년 전 조회 1,336
13년 전 조회 4,637
13년 전 조회 950
13년 전 조회 1,471
13년 전 조회 3,098
13년 전 조회 1,679
13년 전 조회 2,038
13년 전 조회 1,673
13년 전 조회 2,327
13년 전 조회 1,747
13년 전 조회 1,328
13년 전 조회 808
13년 전 조회 1.4만
13년 전 조회 1,587
13년 전 조회 3,725
13년 전 조회 1,337
13년 전 조회 801
13년 전 조회 974
13년 전 조회 795