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년 전 조회 808
13년 전 조회 863
13년 전 조회 1,094
13년 전 조회 1,019
13년 전 조회 810
13년 전 조회 1,628
13년 전 조회 999
13년 전 조회 6,165
13년 전 조회 1,327
13년 전 조회 969
13년 전 조회 2,004
13년 전 조회 814
13년 전 조회 1,748
13년 전 조회 3,226
13년 전 조회 824
13년 전 조회 848
13년 전 조회 941
13년 전 조회 848
13년 전 조회 762
13년 전 조회 1,016
13년 전 조회 762
13년 전 조회 1,293
13년 전 조회 1,252
13년 전 조회 1,043
13년 전 조회 770
13년 전 조회 952
13년 전 조회 1,712
13년 전 조회 768
13년 전 조회 2,757
13년 전 조회 2,476
13년 전 조회 2,339
13년 전 조회 1,663
13년 전 조회 960
13년 전 조회 4,119
13년 전 조회 1,955
13년 전 조회 2,393
13년 전 조회 789
13년 전 조회 754
13년 전 조회 1,863
13년 전 조회 891
13년 전 조회 2,108
13년 전 조회 1,787
13년 전 조회 1,595
13년 전 조회 1,510
13년 전 조회 4,921
13년 전 조회 3,334
13년 전 조회 1,700
13년 전 조회 781
13년 전 조회 1,445
13년 전 조회 1,920
13년 전 조회 1,646
13년 전 조회 1,438
13년 전 조회 1,108
13년 전 조회 761
13년 전 조회 1,172
13년 전 조회 1,026
13년 전 조회 854
13년 전 조회 846
13년 전 조회 1,291
13년 전 조회 750
13년 전 조회 692
13년 전 조회 783
13년 전 조회 701
13년 전 조회 1,319
13년 전 조회 1,033
13년 전 조회 2,529
13년 전 조회 784
13년 전 조회 1,064
13년 전 조회 1,819
13년 전 조회 995
13년 전 조회 935
13년 전 조회 876
13년 전 조회 990
13년 전 조회 1,388
13년 전 조회 951
13년 전 조회 995
13년 전 조회 1,299
13년 전 조회 1,104
13년 전 조회 1,721
13년 전 조회 1,183
13년 전 조회 717
13년 전 조회 1,253
13년 전 조회 4,552
13년 전 조회 868
13년 전 조회 1,382
13년 전 조회 3,008
13년 전 조회 1,593
13년 전 조회 1,955
13년 전 조회 1,591
13년 전 조회 2,249
13년 전 조회 1,663
13년 전 조회 1,241
13년 전 조회 730
13년 전 조회 1.4만
13년 전 조회 1,505
13년 전 조회 3,642
13년 전 조회 1,264
13년 전 조회 724
13년 전 조회 896
13년 전 조회 717