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년 전 조회 560
13년 전 조회 620
13년 전 조회 864
13년 전 조회 783
13년 전 조회 565
13년 전 조회 1,410
13년 전 조회 749
13년 전 조회 5,932
13년 전 조회 1,107
13년 전 조회 733
13년 전 조회 1,757
13년 전 조회 576
13년 전 조회 1,500
13년 전 조회 2,979
13년 전 조회 586
13년 전 조회 609
13년 전 조회 706
13년 전 조회 614
13년 전 조회 511
13년 전 조회 769
13년 전 조회 512
13년 전 조회 1,052
13년 전 조회 1,032
13년 전 조회 801
13년 전 조회 558
13년 전 조회 713
13년 전 조회 1,488
13년 전 조회 536
13년 전 조회 2,523
13년 전 조회 2,241
13년 전 조회 2,126
13년 전 조회 1,433
13년 전 조회 735
13년 전 조회 3,881
13년 전 조회 1,740
13년 전 조회 2,163
13년 전 조회 573
13년 전 조회 527
13년 전 조회 1,660
13년 전 조회 657
13년 전 조회 1,882
13년 전 조회 1,571
13년 전 조회 1,354
13년 전 조회 1,286
13년 전 조회 4,677
13년 전 조회 3,108
13년 전 조회 1,474
13년 전 조회 566
13년 전 조회 1,208
13년 전 조회 1,685
13년 전 조회 1,418
13년 전 조회 1,206
13년 전 조회 865
13년 전 조회 532
13년 전 조회 924
13년 전 조회 783
13년 전 조회 607
13년 전 조회 610
13년 전 조회 1,062
13년 전 조회 501
13년 전 조회 464
13년 전 조회 553
13년 전 조회 468
13년 전 조회 1,093
13년 전 조회 786
13년 전 조회 2,303
13년 전 조회 553
13년 전 조회 827
13년 전 조회 1,569
13년 전 조회 752
13년 전 조회 697
13년 전 조회 646
13년 전 조회 755
13년 전 조회 1,158
13년 전 조회 716
13년 전 조회 750
13년 전 조회 1,066
13년 전 조회 868
13년 전 조회 1,484
13년 전 조회 966
13년 전 조회 472
13년 전 조회 1,039
13년 전 조회 4,348
13년 전 조회 633
13년 전 조회 1,137
13년 전 조회 2,771
13년 전 조회 1,356
13년 전 조회 1,727
13년 전 조회 1,352
13년 전 조회 2,016
13년 전 조회 1,417
13년 전 조회 1,011
13년 전 조회 483
13년 전 조회 1.3만
13년 전 조회 1,262
13년 전 조회 3,397
13년 전 조회 1,033
13년 전 조회 487
13년 전 조회 660
13년 전 조회 478
🐛 버그신고