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년 전 조회 592
13년 전 조회 645
13년 전 조회 899
13년 전 조회 812
13년 전 조회 597
13년 전 조회 1,441
13년 전 조회 775
13년 전 조회 5,965
13년 전 조회 1,133
13년 전 조회 762
13년 전 조회 1,783
13년 전 조회 611
13년 전 조회 1,538
13년 전 조회 3,010
13년 전 조회 616
13년 전 조회 630
13년 전 조회 731
13년 전 조회 645
13년 전 조회 555
13년 전 조회 803
13년 전 조회 547
13년 전 조회 1,088
13년 전 조회 1,064
13년 전 조회 842
13년 전 조회 592
13년 전 조회 750
13년 전 조회 1,519
13년 전 조회 569
13년 전 조회 2,559
13년 전 조회 2,272
13년 전 조회 2,157
13년 전 조회 1,461
13년 전 조회 761
13년 전 조회 3,917
13년 전 조회 1,771
13년 전 조회 2,191
13년 전 조회 600
13년 전 조회 568
13년 전 조회 1,692
13년 전 조회 692
13년 전 조회 1,914
13년 전 조회 1,605
13년 전 조회 1,391
13년 전 조회 1,326
13년 전 조회 4,720
13년 전 조회 3,140
13년 전 조회 1,506
13년 전 조회 593
13년 전 조회 1,238
13년 전 조회 1,713
13년 전 조회 1,443
13년 전 조회 1,238
13년 전 조회 898
13년 전 조회 561
13년 전 조회 966
13년 전 조회 816
13년 전 조회 647
13년 전 조회 638
13년 전 조회 1,099
13년 전 조회 536
13년 전 조회 497
13년 전 조회 589
13년 전 조회 502
13년 전 조회 1,125
13년 전 조회 822
13년 전 조회 2,344
13년 전 조회 585
13년 전 조회 860
13년 전 조회 1,601
13년 전 조회 781
13년 전 조회 726
13년 전 조회 674
13년 전 조회 793
13년 전 조회 1,184
13년 전 조회 748
13년 전 조회 778
13년 전 조회 1,102
13년 전 조회 905
13년 전 조회 1,521
13년 전 조회 999
13년 전 조회 513
13년 전 조회 1,065
13년 전 조회 4,378
13년 전 조회 664
13년 전 조회 1,166
13년 전 조회 2,807
13년 전 조회 1,392
13년 전 조회 1,759
13년 전 조회 1,387
13년 전 조회 2,054
13년 전 조회 1,455
13년 전 조회 1,046
13년 전 조회 511
13년 전 조회 1.3만
13년 전 조회 1,301
13년 전 조회 3,433
13년 전 조회 1,069
13년 전 조회 518
13년 전 조회 697
13년 전 조회 515
🐛 버그신고