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년 전 조회 510
13년 전 조회 577
13년 전 조회 816
13년 전 조회 737
13년 전 조회 528
13년 전 조회 1,367
13년 전 조회 713
13년 전 조회 5,893
13년 전 조회 1,056
13년 전 조회 688
13년 전 조회 1,725
13년 전 조회 532
13년 전 조회 1,458
13년 전 조회 2,931
13년 전 조회 538
13년 전 조회 575
13년 전 조회 665
13년 전 조회 569
13년 전 조회 472
13년 전 조회 729
13년 전 조회 475
13년 전 조회 1,013
13년 전 조회 988
13년 전 조회 755
13년 전 조회 511
13년 전 조회 674
13년 전 조회 1,450
13년 전 조회 499
13년 전 조회 2,481
13년 전 조회 2,195
13년 전 조회 2,071
13년 전 조회 1,387
13년 전 조회 696
13년 전 조회 3,834
13년 전 조회 1,702
13년 전 조회 2,121
13년 전 조회 525
13년 전 조회 493
13년 전 조회 1,627
13년 전 조회 614
13년 전 조회 1,843
13년 전 조회 1,522
13년 전 조회 1,312
13년 전 조회 1,238
13년 전 조회 4,638
13년 전 조회 3,069
13년 전 조회 1,432
13년 전 조회 520
13년 전 조회 1,170
13년 전 조회 1,641
13년 전 조회 1,375
13년 전 조회 1,158
13년 전 조회 824
13년 전 조회 485
13년 전 조회 882
13년 전 조회 746
13년 전 조회 569
13년 전 조회 576
13년 전 조회 1,025
13년 전 조회 472
13년 전 조회 423
13년 전 조회 512
13년 전 조회 428
13년 전 조회 1,057
13년 전 조회 754
13년 전 조회 2,271
13년 전 조회 514
13년 전 조회 794
13년 전 조회 1,538
13년 전 조회 715
13년 전 조회 654
13년 전 조회 608
13년 전 조회 722
13년 전 조회 1,127
13년 전 조회 683
13년 전 조회 713
13년 전 조회 1,028
13년 전 조회 832
13년 전 조회 1,446
13년 전 조회 928
13년 전 조회 443
13년 전 조회 994
13년 전 조회 4,305
13년 전 조회 601
13년 전 조회 1,097
13년 전 조회 2,733
13년 전 조회 1,315
13년 전 조회 1,687
13년 전 조회 1,316
13년 전 조회 1,978
13년 전 조회 1,388
13년 전 조회 961
13년 전 조회 444
13년 전 조회 1.3만
13년 전 조회 1,224
13년 전 조회 3,366
13년 전 조회 998
13년 전 조회 452
13년 전 조회 626
13년 전 조회 443
🐛 버그신고