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년 전 조회 656
13년 전 조회 722
13년 전 조회 953
13년 전 조회 873
13년 전 조회 667
13년 전 조회 1,494
13년 전 조회 845
13년 전 조회 6,025
13년 전 조회 1,195
13년 전 조회 824
13년 전 조회 1,857
13년 전 조회 667
13년 전 조회 1,599
13년 전 조회 3,072
13년 전 조회 679
13년 전 조회 693
13년 전 조회 791
13년 전 조회 708
13년 전 조회 609
13년 전 조회 862
13년 전 조회 609
13년 전 조회 1,151
13년 전 조회 1,119
13년 전 조회 896
13년 전 조회 654
13년 전 조회 808
13년 전 조회 1,583
13년 전 조회 632
13년 전 조회 2,615
13년 전 조회 2,339
13년 전 조회 2,207
13년 전 조회 1,524
13년 전 조회 822
13년 전 조회 3,973
13년 전 조회 1,823
13년 전 조회 2,246
13년 전 조회 660
13년 전 조회 620
13년 전 조회 1,744
13년 전 조회 746
13년 전 조회 1,975
13년 전 조회 1,660
13년 전 조회 1,453
13년 전 조회 1,371
13년 전 조회 4,784
13년 전 조회 3,194
13년 전 조회 1,563
13년 전 조회 649
13년 전 조회 1,307
13년 전 조회 1,780
13년 전 조회 1,507
13년 전 조회 1,292
13년 전 조회 967
13년 전 조회 624
13년 전 조회 1,031
13년 전 조회 884
13년 전 조회 705
13년 전 조회 698
13년 전 조회 1,163
13년 전 조회 604
13년 전 조회 555
13년 전 조회 638
13년 전 조회 556
13년 전 조회 1,188
13년 전 조회 886
13년 전 조회 2,405
13년 전 조회 642
13년 전 조회 917
13년 전 조회 1,663
13년 전 조회 845
13년 전 조회 791
13년 전 조회 731
13년 전 조회 849
13년 전 조회 1,247
13년 전 조회 806
13년 전 조회 844
13년 전 조회 1,164
13년 전 조회 965
13년 전 조회 1,585
13년 전 조회 1,063
13년 전 조회 582
13년 전 조회 1,116
13년 전 조회 4,435
13년 전 조회 729
13년 전 조회 1,230
13년 전 조회 2,876
13년 전 조회 1,451
13년 전 조회 1,813
13년 전 조회 1,445
13년 전 조회 2,104
13년 전 조회 1,515
13년 전 조회 1,104
13년 전 조회 570
13년 전 조회 1.3만
13년 전 조회 1,365
13년 전 조회 3,501
13년 전 조회 1,127
13년 전 조회 584
13년 전 조회 760
13년 전 조회 572
🐛 버그신고