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년 전 조회 507
13년 전 조회 575
13년 전 조회 816
13년 전 조회 735
13년 전 조회 526
13년 전 조회 1,365
13년 전 조회 711
13년 전 조회 5,891
13년 전 조회 1,055
13년 전 조회 688
13년 전 조회 1,724
13년 전 조회 529
13년 전 조회 1,457
13년 전 조회 2,928
13년 전 조회 536
13년 전 조회 572
13년 전 조회 662
13년 전 조회 568
13년 전 조회 470
13년 전 조회 727
13년 전 조회 475
13년 전 조회 1,011
13년 전 조회 987
13년 전 조회 755
13년 전 조회 508
13년 전 조회 672
13년 전 조회 1,448
13년 전 조회 499
13년 전 조회 2,479
13년 전 조회 2,192
13년 전 조회 2,071
13년 전 조회 1,385
13년 전 조회 695
13년 전 조회 3,834
13년 전 조회 1,702
13년 전 조회 2,121
13년 전 조회 525
13년 전 조회 492
13년 전 조회 1,626
13년 전 조회 613
13년 전 조회 1,842
13년 전 조회 1,520
13년 전 조회 1,310
13년 전 조회 1,237
13년 전 조회 4,638
13년 전 조회 3,068
13년 전 조회 1,430
13년 전 조회 518
13년 전 조회 1,167
13년 전 조회 1,638
13년 전 조회 1,373
13년 전 조회 1,157
13년 전 조회 822
13년 전 조회 484
13년 전 조회 880
13년 전 조회 743
13년 전 조회 568
13년 전 조회 575
13년 전 조회 1,025
13년 전 조회 471
13년 전 조회 423
13년 전 조회 511
13년 전 조회 428
13년 전 조회 1,057
13년 전 조회 754
13년 전 조회 2,270
13년 전 조회 513
13년 전 조회 793
13년 전 조회 1,537
13년 전 조회 713
13년 전 조회 654
13년 전 조회 608
13년 전 조회 719
13년 전 조회 1,125
13년 전 조회 682
13년 전 조회 711
13년 전 조회 1,028
13년 전 조회 829
13년 전 조회 1,446
13년 전 조회 928
13년 전 조회 440
13년 전 조회 992
13년 전 조회 4,304
13년 전 조회 600
13년 전 조회 1,097
13년 전 조회 2,732
13년 전 조회 1,313
13년 전 조회 1,686
13년 전 조회 1,314
13년 전 조회 1,976
13년 전 조회 1,387
13년 전 조회 961
13년 전 조회 443
13년 전 조회 1.3만
13년 전 조회 1,223
13년 전 조회 3,366
13년 전 조회 997
13년 전 조회 452
13년 전 조회 626
13년 전 조회 443
🐛 버그신고