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,752
13년 전 조회 1,870
13년 전 조회 2,114
13년 전 조회 1,998
13년 전 조회 1,793
13년 전 조회 2,607
13년 전 조회 1,971
13년 전 조회 7,179
13년 전 조회 2,328
13년 전 조회 1,951
13년 전 조회 3,031
13년 전 조회 1,770
13년 전 조회 2,717
13년 전 조회 4,203
13년 전 조회 1,780
13년 전 조회 1,769
13년 전 조회 1,895
13년 전 조회 1,783
13년 전 조회 1,689
13년 전 조회 1,931
13년 전 조회 1,689
13년 전 조회 2,196
13년 전 조회 2,236
13년 전 조회 1,951
13년 전 조회 1,709
13년 전 조회 1,891
13년 전 조회 2,621
13년 전 조회 1,660
13년 전 조회 3,648
13년 전 조회 3,363
13년 전 조회 3,240
13년 전 조회 2,569
13년 전 조회 1,848
13년 전 조회 5,021
13년 전 조회 2,845
13년 전 조회 3,307
13년 전 조회 1,704
13년 전 조회 1,636
13년 전 조회 2,796
13년 전 조회 1,814
13년 전 조회 3,012
13년 전 조회 2,695
13년 전 조회 2,489
13년 전 조회 2,359
13년 전 조회 5,817
13년 전 조회 4,187
13년 전 조회 2,576
13년 전 조회 1,642
13년 전 조회 2,305
13년 전 조회 2,765
13년 전 조회 2,513
13년 전 조회 2,309
13년 전 조회 2,028
13년 전 조회 1,651
13년 전 조회 2,079
13년 전 조회 1,923
13년 전 조회 1,767
13년 전 조회 1,733
13년 전 조회 2,190
13년 전 조회 1,662
13년 전 조회 1,605
13년 전 조회 1,666
13년 전 조회 1,589
13년 전 조회 2,215
13년 전 조회 1,920
13년 전 조회 3,440
13년 전 조회 1,680
13년 전 조회 1,973
13년 전 조회 2,723
13년 전 조회 1,861
13년 전 조회 1,810
13년 전 조회 1,776
13년 전 조회 1,871
13년 전 조회 2,292
13년 전 조회 1,851
13년 전 조회 1,891
13년 전 조회 2,245
13년 전 조회 2,024
13년 전 조회 2,643
13년 전 조회 2,084
13년 전 조회 1,635
13년 전 조회 2,238
13년 전 조회 5,568
13년 전 조회 1,922
13년 전 조회 2,448
13년 전 조회 4,054
13년 전 조회 2,653
13년 전 조회 3,003
13년 전 조회 2,618
13년 전 조회 3,279
13년 전 조회 2,700
13년 전 조회 2,288
13년 전 조회 1,752
13년 전 조회 1.5만
13년 전 조회 2,543
13년 전 조회 4,659
13년 전 조회 2,318
13년 전 조회 1,755
13년 전 조회 1,921
13년 전 조회 1,757