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년 전 조회 499
13년 전 조회 562
13년 전 조회 803
13년 전 조회 724
13년 전 조회 514
13년 전 조회 1,357
13년 전 조회 700
13년 전 조회 5,881
13년 전 조회 1,041
13년 전 조회 677
13년 전 조회 1,713
13년 전 조회 522
13년 전 조회 1,445
13년 전 조회 2,917
13년 전 조회 525
13년 전 조회 559
13년 전 조회 651
13년 전 조회 557
13년 전 조회 458
13년 전 조회 718
13년 전 조회 463
13년 전 조회 1,001
13년 전 조회 975
13년 전 조회 746
13년 전 조회 499
13년 전 조회 657
13년 전 조회 1,435
13년 전 조회 490
13년 전 조회 2,469
13년 전 조회 2,179
13년 전 조회 2,062
13년 전 조회 1,374
13년 전 조회 685
13년 전 조회 3,822
13년 전 조회 1,687
13년 전 조회 2,105
13년 전 조회 515
13년 전 조회 480
13년 전 조회 1,617
13년 전 조회 602
13년 전 조회 1,825
13년 전 조회 1,510
13년 전 조회 1,301
13년 전 조회 1,228
13년 전 조회 4,624
13년 전 조회 3,060
13년 전 조회 1,419
13년 전 조회 505
13년 전 조회 1,155
13년 전 조회 1,629
13년 전 조회 1,364
13년 전 조회 1,149
13년 전 조회 809
13년 전 조회 475
13년 전 조회 868
13년 전 조회 735
13년 전 조회 555
13년 전 조회 563
13년 전 조회 1,012
13년 전 조회 460
13년 전 조회 416
13년 전 조회 503
13년 전 조회 419
13년 전 조회 1,049
13년 전 조회 740
13년 전 조회 2,257
13년 전 조회 504
13년 전 조회 782
13년 전 조회 1,522
13년 전 조회 700
13년 전 조회 642
13년 전 조회 597
13년 전 조회 711
13년 전 조회 1,113
13년 전 조회 672
13년 전 조회 700
13년 전 조회 1,011
13년 전 조회 822
13년 전 조회 1,434
13년 전 조회 918
13년 전 조회 432
13년 전 조회 982
13년 전 조회 4,295
13년 전 조회 585
13년 전 조회 1,079
13년 전 조회 2,724
13년 전 조회 1,304
13년 전 조회 1,674
13년 전 조회 1,305
13년 전 조회 1,966
13년 전 조회 1,374
13년 전 조회 953
13년 전 조회 433
13년 전 조회 1.3만
13년 전 조회 1,215
13년 전 조회 3,354
13년 전 조회 982
13년 전 조회 443
13년 전 조회 616
13년 전 조회 433
🐛 버그신고