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년 전 조회 561
13년 전 조회 801
13년 전 조회 721
13년 전 조회 513
13년 전 조회 1,350
13년 전 조회 697
13년 전 조회 5,881
13년 전 조회 1,041
13년 전 조회 675
13년 전 조회 1,711
13년 전 조회 521
13년 전 조회 1,442
13년 전 조회 2,915
13년 전 조회 522
13년 전 조회 557
13년 전 조회 648
13년 전 조회 554
13년 전 조회 455
13년 전 조회 715
13년 전 조회 461
13년 전 조회 1,001
13년 전 조회 974
13년 전 조회 743
13년 전 조회 497
13년 전 조회 655
13년 전 조회 1,435
13년 전 조회 488
13년 전 조회 2,468
13년 전 조회 2,175
13년 전 조회 2,059
13년 전 조회 1,373
13년 전 조회 683
13년 전 조회 3,819
13년 전 조회 1,686
13년 전 조회 2,104
13년 전 조회 511
13년 전 조회 480
13년 전 조회 1,613
13년 전 조회 601
13년 전 조회 1,824
13년 전 조회 1,506
13년 전 조회 1,299
13년 전 조회 1,227
13년 전 조회 4,624
13년 전 조회 3,058
13년 전 조회 1,419
13년 전 조회 503
13년 전 조회 1,154
13년 전 조회 1,627
13년 전 조회 1,362
13년 전 조회 1,146
13년 전 조회 808
13년 전 조회 471
13년 전 조회 864
13년 전 조회 733
13년 전 조회 555
13년 전 조회 561
13년 전 조회 1,009
13년 전 조회 460
13년 전 조회 414
13년 전 조회 501
13년 전 조회 419
13년 전 조회 1,046
13년 전 조회 740
13년 전 조회 2,255
13년 전 조회 501
13년 전 조회 782
13년 전 조회 1,522
13년 전 조회 700
13년 전 조회 641
13년 전 조회 597
13년 전 조회 709
13년 전 조회 1,111
13년 전 조회 672
13년 전 조회 698
13년 전 조회 1,011
13년 전 조회 821
13년 전 조회 1,431
13년 전 조회 916
13년 전 조회 430
13년 전 조회 982
13년 전 조회 4,291
13년 전 조회 584
13년 전 조회 1,078
13년 전 조회 2,723
13년 전 조회 1,300
13년 전 조회 1,673
13년 전 조회 1,304
13년 전 조회 1,964
13년 전 조회 1,373
13년 전 조회 950
13년 전 조회 431
13년 전 조회 1.3만
13년 전 조회 1,211
13년 전 조회 3,353
13년 전 조회 982
13년 전 조회 443
13년 전 조회 614
13년 전 조회 431
🐛 버그신고