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년 전 조회 496
13년 전 조회 560
13년 전 조회 799
13년 전 조회 721
13년 전 조회 513
13년 전 조회 1,348
13년 전 조회 697
13년 전 조회 5,880
13년 전 조회 1,040
13년 전 조회 675
13년 전 조회 1,710
13년 전 조회 521
13년 전 조회 1,441
13년 전 조회 2,915
13년 전 조회 521
13년 전 조회 557
13년 전 조회 648
13년 전 조회 553
13년 전 조회 455
13년 전 조회 715
13년 전 조회 461
13년 전 조회 1,000
13년 전 조회 973
13년 전 조회 742
13년 전 조회 496
13년 전 조회 655
13년 전 조회 1,434
13년 전 조회 488
13년 전 조회 2,466
13년 전 조회 2,175
13년 전 조회 2,058
13년 전 조회 1,373
13년 전 조회 683
13년 전 조회 3,819
13년 전 조회 1,684
13년 전 조회 2,102
13년 전 조회 510
13년 전 조회 480
13년 전 조회 1,612
13년 전 조회 600
13년 전 조회 1,823
13년 전 조회 1,506
13년 전 조회 1,298
13년 전 조회 1,227
13년 전 조회 4,624
13년 전 조회 3,057
13년 전 조회 1,418
13년 전 조회 502
13년 전 조회 1,152
13년 전 조회 1,626
13년 전 조회 1,362
13년 전 조회 1,146
13년 전 조회 806
13년 전 조회 471
13년 전 조회 863
13년 전 조회 732
13년 전 조회 555
13년 전 조회 561
13년 전 조회 1,009
13년 전 조회 460
13년 전 조회 413
13년 전 조회 500
13년 전 조회 419
13년 전 조회 1,045
13년 전 조회 739
13년 전 조회 2,255
13년 전 조회 501
13년 전 조회 782
13년 전 조회 1,521
13년 전 조회 700
13년 전 조회 640
13년 전 조회 597
13년 전 조회 708
13년 전 조회 1,109
13년 전 조회 672
13년 전 조회 698
13년 전 조회 1,011
13년 전 조회 820
13년 전 조회 1,431
13년 전 조회 916
13년 전 조회 430
13년 전 조회 981
13년 전 조회 4,289
13년 전 조회 583
13년 전 조회 1,078
13년 전 조회 2,721
13년 전 조회 1,299
13년 전 조회 1,672
13년 전 조회 1,304
13년 전 조회 1,963
13년 전 조회 1,372
13년 전 조회 950
13년 전 조회 431
13년 전 조회 1.3만
13년 전 조회 1,209
13년 전 조회 3,352
13년 전 조회 982
13년 전 조회 443
13년 전 조회 614
13년 전 조회 431
🐛 버그신고