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;
}
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
13년 전 조회 1,712
13년 전 조회 1,826
13년 전 조회 2,072
13년 전 조회 1,959
13년 전 조회 1,743
13년 전 조회 2,565
13년 전 조회 1,937
13년 전 조회 7,140
13년 전 조회 2,296
13년 전 조회 1,903
13년 전 조회 2,974
13년 전 조회 1,736
13년 전 조회 2,674
13년 전 조회 4,161
13년 전 조회 1,734
13년 전 조회 1,728
13년 전 조회 1,839
13년 전 조회 1,749
13년 전 조회 1,645
13년 전 조회 1,897
13년 전 조회 1,646
13년 전 조회 2,154
13년 전 조회 2,188
13년 전 조회 1,900
13년 전 조회 1,656
13년 전 조회 1,846
13년 전 조회 2,576
13년 전 조회 1,610
13년 전 조회 3,608
13년 전 조회 3,317
13년 전 조회 3,196
13년 전 조회 2,508
13년 전 조회 1,802
13년 전 조회 4,973
13년 전 조회 2,793
13년 전 조회 3,265
13년 전 조회 1,655
13년 전 조회 1,603
13년 전 조회 2,768
13년 전 조회 1,773
13년 전 조회 2,963
13년 전 조회 2,649
13년 전 조회 2,455
13년 전 조회 2,305
13년 전 조회 5,764
13년 전 조회 4,136
13년 전 조회 2,526
13년 전 조회 1,599
13년 전 조회 2,262
13년 전 조회 2,721
13년 전 조회 2,468
13년 전 조회 2,261
13년 전 조회 1,992
13년 전 조회 1,598
13년 전 조회 2,043
13년 전 조회 1,885
13년 전 조회 1,711
13년 전 조회 1,684
13년 전 조회 2,143
13년 전 조회 1,607
13년 전 조회 1,556
13년 전 조회 1,618
13년 전 조회 1,549
13년 전 조회 2,174
13년 전 조회 1,869
13년 전 조회 3,404
13년 전 조회 1,629
13년 전 조회 1,916
13년 전 조회 2,679
13년 전 조회 1,824
13년 전 조회 1,768
13년 전 조회 1,726
13년 전 조회 1,833
13년 전 조회 2,246
13년 전 조회 1,808
13년 전 조회 1,852
13년 전 조회 2,205
13년 전 조회 1,981
13년 전 조회 2,596
13년 전 조회 2,045
13년 전 조회 1,593
13년 전 조회 2,201
13년 전 조회 5,535
13년 전 조회 1,886
13년 전 조회 2,401
13년 전 조회 4,012
13년 전 조회 2,602
13년 전 조회 2,959
13년 전 조회 2,579
13년 전 조회 3,234
13년 전 조회 2,663
13년 전 조회 2,248
13년 전 조회 1,710
13년 전 조회 1.5만
13년 전 조회 2,500
13년 전 조회 4,624
13년 전 조회 2,274
13년 전 조회 1,729
13년 전 조회 1,876
13년 전 조회 1,712