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,740
13년 전 조회 1,854
13년 전 조회 2,100
13년 전 조회 1,981
13년 전 조회 1,779
13년 전 조회 2,591
13년 전 조회 1,952
13년 전 조회 7,157
13년 전 조회 2,310
13년 전 조회 1,933
13년 전 조회 3,002
13년 전 조회 1,759
13년 전 조회 2,694
13년 전 조회 4,188
13년 전 조회 1,762
13년 전 조회 1,755
13년 전 조회 1,872
13년 전 조회 1,774
13년 전 조회 1,677
13년 전 조회 1,915
13년 전 조회 1,671
13년 전 조회 2,175
13년 전 조회 2,212
13년 전 조회 1,931
13년 전 조회 1,689
13년 전 조회 1,870
13년 전 조회 2,605
13년 전 조회 1,637
13년 전 조회 3,635
13년 전 조회 3,345
13년 전 조회 3,222
13년 전 조회 2,542
13년 전 조회 1,828
13년 전 조회 4,999
13년 전 조회 2,817
13년 전 조회 3,285
13년 전 조회 1,684
13년 전 조회 1,617
13년 전 조회 2,787
13년 전 조회 1,793
13년 전 조회 2,991
13년 전 조회 2,674
13년 전 조회 2,477
13년 전 조회 2,330
13년 전 조회 5,795
13년 전 조회 4,162
13년 전 조회 2,555
13년 전 조회 1,622
13년 전 조회 2,286
13년 전 조회 2,749
13년 전 조회 2,489
13년 전 조회 2,288
13년 전 조회 2,008
13년 전 조회 1,628
13년 전 조회 2,068
13년 전 조회 1,905
13년 전 조회 1,752
13년 전 조회 1,712
13년 전 조회 2,167
13년 전 조회 1,642
13년 전 조회 1,587
13년 전 조회 1,643
13년 전 조회 1,574
13년 전 조회 2,199
13년 전 조회 1,897
13년 전 조회 3,422
13년 전 조회 1,664
13년 전 조회 1,944
13년 전 조회 2,703
13년 전 조회 1,846
13년 전 조회 1,793
13년 전 조회 1,755
13년 전 조회 1,857
13년 전 조회 2,273
13년 전 조회 1,826
13년 전 조회 1,874
13년 전 조회 2,230
13년 전 조회 2,004
13년 전 조회 2,627
13년 전 조회 2,066
13년 전 조회 1,615
13년 전 조회 2,221
13년 전 조회 5,553
13년 전 조회 1,906
13년 전 조회 2,430
13년 전 조회 4,033
13년 전 조회 2,631
13년 전 조회 2,985
13년 전 조회 2,603
13년 전 조회 3,262
13년 전 조회 2,686
13년 전 조회 2,270
13년 전 조회 1,731
13년 전 조회 1.5만
13년 전 조회 2,521
13년 전 조회 4,649
13년 전 조회 2,301
13년 전 조회 1,746
13년 전 조회 1,901
13년 전 조회 1,734