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,329
13년 전 조회 1,397
13년 전 조회 1,647
13년 전 조회 1,558
13년 전 조회 1,352
13년 전 조회 2,179
13년 전 조회 1,528
13년 전 조회 6,730
13년 전 조회 1,885
13년 전 조회 1,497
13년 전 조회 2,541
13년 전 조회 1,336
13년 전 조회 2,288
13년 전 조회 3,794
13년 전 조회 1,346
13년 전 조회 1,354
13년 전 조회 1,465
13년 전 조회 1,344
13년 전 조회 1,268
13년 전 조회 1,533
13년 전 조회 1,260
13년 전 조회 1,812
13년 전 조회 1,804
13년 전 조회 1,537
13년 전 조회 1,301
13년 전 조회 1,484
13년 전 조회 2,237
13년 전 조회 1,240
13년 전 조회 3,251
13년 전 조회 2,948
13년 전 조회 2,851
13년 전 조회 2,144
13년 전 조회 1,458
13년 전 조회 4,604
13년 전 조회 2,448
13년 전 조회 2,918
13년 전 조회 1,300
13년 전 조회 1,229
13년 전 조회 2,401
13년 전 조회 1,399
13년 전 조회 2,630
13년 전 조회 2,277
13년 전 조회 2,106
13년 전 조회 1,966
13년 전 조회 5,410
13년 전 조회 3,797
13년 전 조회 2,147
13년 전 조회 1,225
13년 전 조회 1,887
13년 전 조회 2,376
13년 전 조회 2,107
13년 전 조회 1,899
13년 전 조회 1,589
13년 전 조회 1,216
13년 전 조회 1,646
13년 전 조회 1,491
13년 전 조회 1,317
13년 전 조회 1,300
13년 전 조회 1,762
13년 전 조회 1,205
13년 전 조회 1,162
13년 전 조회 1,245
13년 전 조회 1,186
13년 전 조회 1,799
13년 전 조회 1,503
13년 전 조회 3,018
13년 전 조회 1,258
13년 전 조회 1,526
13년 전 조회 2,309
13년 전 조회 1,457
13년 전 조회 1,374
13년 전 조회 1,356
13년 전 조회 1,463
13년 전 조회 1,860
13년 전 조회 1,427
13년 전 조회 1,452
13년 전 조회 1,763
13년 전 조회 1,575
13년 전 조회 2,204
13년 전 조회 1,655
13년 전 조회 1,199
13년 전 조회 1,800
13년 전 조회 5,137
13년 전 조회 1,449
13년 전 조회 1,970
13년 전 조회 3,592
13년 전 조회 2,201
13년 전 조회 2,533
13년 전 조회 2,159
13년 전 조회 2,821
13년 전 조회 2,239
13년 전 조회 1,837
13년 전 조회 1,297
13년 전 조회 1.4만
13년 전 조회 2,072
13년 전 조회 4,196
13년 전 조회 1,831
13년 전 조회 1,273
13년 전 조회 1,437
13년 전 조회 1,288