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년 전 조회 1,195
13년 전 조회 1,263
13년 전 조회 1,517
13년 전 조회 1,430
13년 전 조회 1,229
13년 전 조회 2,047
13년 전 조회 1,418
13년 전 조회 6,607
13년 전 조회 1,767
13년 전 조회 1,385
13년 전 조회 2,422
13년 전 조회 1,231
13년 전 조회 2,174
13년 전 조회 3,676
13년 전 조회 1,223
13년 전 조회 1,231
13년 전 조회 1,342
13년 전 조회 1,237
13년 전 조회 1,150
13년 전 조회 1,427
13년 전 조회 1,147
13년 전 조회 1,701
13년 전 조회 1,660
13년 전 조회 1,426
13년 전 조회 1,181
13년 전 조회 1,373
13년 전 조회 2,132
13년 전 조회 1,135
13년 전 조회 3,138
13년 전 조회 2,847
13년 전 조회 2,733
13년 전 조회 2,046
13년 전 조회 1,356
13년 전 조회 4,495
13년 전 조회 2,309
13년 전 조회 2,783
13년 전 조회 1,164
13년 전 조회 1,089
13년 전 조회 2,259
13년 전 조회 1,254
13년 전 조회 2,492
13년 전 조회 2,151
13년 전 조회 1,974
13년 전 조회 1,841
13년 전 조회 5,269
13년 전 조회 3,653
13년 전 조회 2,014
13년 전 조회 1,089
13년 전 조회 1,749
13년 전 조회 2,233
13년 전 조회 1,958
13년 전 조회 1,750
13년 전 조회 1,433
13년 전 조회 1,077
13년 전 조회 1,517
13년 전 조회 1,343
13년 전 조회 1,172
13년 전 조회 1,146
13년 전 조회 1,622
13년 전 조회 1,070
13년 전 조회 1,017
13년 전 조회 1,114
13년 전 조회 1,029
13년 전 조회 1,660
13년 전 조회 1,367
13년 전 조회 2,869
13년 전 조회 1,106
13년 전 조회 1,388
13년 전 조회 2,170
13년 전 조회 1,316
13년 전 조회 1,238
13년 전 조회 1,201
13년 전 조회 1,325
13년 전 조회 1,713
13년 전 조회 1,278
13년 전 조회 1,322
13년 전 조회 1,627
13년 전 조회 1,443
13년 전 조회 2,069
13년 전 조회 1,535
13년 전 조회 1,050
13년 전 조회 1,648
13년 전 조회 4,977
13년 전 조회 1,293
13년 전 조회 1,815
13년 전 조회 3,422
13년 전 조회 2,028
13년 전 조회 2,378
13년 전 조회 2,008
13년 전 조회 2,684
13년 전 조회 2,094
13년 전 조회 1,690
13년 전 조회 1,162
13년 전 조회 1.4만
13년 전 조회 1,941
13년 전 조회 4,070
13년 전 조회 1,701
13년 전 조회 1,152
13년 전 조회 1,314
13년 전 조회 1,157