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년 전 조회 500
13년 전 조회 562
13년 전 조회 804
13년 전 조회 725
13년 전 조회 514
13년 전 조회 1,358
13년 전 조회 702
13년 전 조회 5,881
13년 전 조회 1,041
13년 전 조회 678
13년 전 조회 1,714
13년 전 조회 522
13년 전 조회 1,445
13년 전 조회 2,920
13년 전 조회 527
13년 전 조회 560
13년 전 조회 651
13년 전 조회 559
13년 전 조회 458
13년 전 조회 719
13년 전 조회 464
13년 전 조회 1,002
13년 전 조회 976
13년 전 조회 747
13년 전 조회 499
13년 전 조회 659
13년 전 조회 1,437
13년 전 조회 490
13년 전 조회 2,470
13년 전 조회 2,181
13년 전 조회 2,062
13년 전 조회 1,374
13년 전 조회 687
13년 전 조회 3,822
13년 전 조회 1,688
13년 전 조회 2,105
13년 전 조회 516
13년 전 조회 482
13년 전 조회 1,618
13년 전 조회 603
13년 전 조회 1,827
13년 전 조회 1,510
13년 전 조회 1,302
13년 전 조회 1,229
13년 전 조회 4,626
13년 전 조회 3,061
13년 전 조회 1,420
13년 전 조회 506
13년 전 조회 1,155
13년 전 조회 1,631
13년 전 조회 1,364
13년 전 조회 1,150
13년 전 조회 810
13년 전 조회 476
13년 전 조회 868
13년 전 조회 736
13년 전 조회 555
13년 전 조회 564
13년 전 조회 1,012
13년 전 조회 460
13년 전 조회 416
13년 전 조회 503
13년 전 조회 420
13년 전 조회 1,050
13년 전 조회 740
13년 전 조회 2,259
13년 전 조회 505
13년 전 조회 784
13년 전 조회 1,522
13년 전 조회 701
13년 전 조회 643
13년 전 조회 599
13년 전 조회 711
13년 전 조회 1,114
13년 전 조회 673
13년 전 조회 700
13년 전 조회 1,013
13년 전 조회 822
13년 전 조회 1,434
13년 전 조회 918
13년 전 조회 434
13년 전 조회 983
13년 전 조회 4,295
13년 전 조회 586
13년 전 조회 1,080
13년 전 조회 2,726
13년 전 조회 1,304
13년 전 조회 1,676
13년 전 조회 1,305
13년 전 조회 1,967
13년 전 조회 1,376
13년 전 조회 954
13년 전 조회 433
13년 전 조회 1.3만
13년 전 조회 1,218
13년 전 조회 3,354
13년 전 조회 983
13년 전 조회 444
13년 전 조회 616
13년 전 조회 435
🐛 버그신고