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년 전 조회 634
13년 전 조회 691
13년 전 조회 927
13년 전 조회 845
13년 전 조회 636
13년 전 조회 1,475
13년 전 조회 827
13년 전 조회 5,998
13년 전 조회 1,167
13년 전 조회 797
13년 전 조회 1,828
13년 전 조회 651
13년 전 조회 1,578
13년 전 조회 3,047
13년 전 조회 653
13년 전 조회 665
13년 전 조회 762
13년 전 조회 682
13년 전 조회 581
13년 전 조회 834
13년 전 조회 587
13년 전 조회 1,130
13년 전 조회 1,092
13년 전 조회 876
13년 전 조회 630
13년 전 조회 785
13년 전 조회 1,565
13년 전 조회 606
13년 전 조회 2,588
13년 전 조회 2,312
13년 전 조회 2,190
13년 전 조회 1,501
13년 전 조회 798
13년 전 조회 3,947
13년 전 조회 1,799
13년 전 조회 2,231
13년 전 조회 638
13년 전 조회 603
13년 전 조회 1,717
13년 전 조회 729
13년 전 조회 1,950
13년 전 조회 1,639
13년 전 조회 1,426
13년 전 조회 1,350
13년 전 조회 4,761
13년 전 조회 3,177
13년 전 조회 1,544
13년 전 조회 623
13년 전 조회 1,283
13년 전 조회 1,764
13년 전 조회 1,480
13년 전 조회 1,272
13년 전 조회 941
13년 전 조회 602
13년 전 조회 1,000
13년 전 조회 857
13년 전 조회 685
13년 전 조회 675
13년 전 조회 1,142
13년 전 조회 574
13년 전 조회 536
13년 전 조회 625
13년 전 조회 536
13년 전 조회 1,166
13년 전 조회 866
13년 전 조회 2,384
13년 전 조회 619
13년 전 조회 896
13년 전 조회 1,645
13년 전 조회 818
13년 전 조회 771
13년 전 조회 713
13년 전 조회 822
13년 전 조회 1,226
13년 전 조회 789
13년 전 조회 813
13년 전 조회 1,142
13년 전 조회 936
13년 전 조회 1,553
13년 전 조회 1,040
13년 전 조회 557
13년 전 조회 1,098
13년 전 조회 4,409
13년 전 조회 708
13년 전 조회 1,205
13년 전 조회 2,843
13년 전 조회 1,430
13년 전 조회 1,791
13년 전 조회 1,423
13년 전 조회 2,085
13년 전 조회 1,491
13년 전 조회 1,077
13년 전 조회 549
13년 전 조회 1.3만
13년 전 조회 1,339
13년 전 조회 3,476
13년 전 조회 1,107
13년 전 조회 558
13년 전 조회 734
13년 전 조회 543
🐛 버그신고