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년 전 조회 556
13년 전 조회 613
13년 전 조회 855
13년 전 조회 776
13년 전 조회 557
13년 전 조회 1,403
13년 전 조회 744
13년 전 조회 5,921
13년 전 조회 1,095
13년 전 조회 724
13년 전 조회 1,752
13년 전 조회 570
13년 전 조회 1,491
13년 전 조회 2,973
13년 전 조회 575
13년 전 조회 606
13년 전 조회 703
13년 전 조회 605
13년 전 조회 506
13년 전 조회 765
13년 전 조회 505
13년 전 조회 1,048
13년 전 조회 1,027
13년 전 조회 795
13년 전 조회 548
13년 전 조회 709
13년 전 조회 1,482
13년 전 조회 528
13년 전 조회 2,519
13년 전 조회 2,234
13년 전 조회 2,113
13년 전 조회 1,427
13년 전 조회 726
13년 전 조회 3,872
13년 전 조회 1,734
13년 전 조회 2,158
13년 전 조회 563
13년 전 조회 522
13년 전 조회 1,655
13년 전 조회 648
13년 전 조회 1,875
13년 전 조회 1,565
13년 전 조회 1,349
13년 전 조회 1,272
13년 전 조회 4,669
13년 전 조회 3,091
13년 전 조회 1,470
13년 전 조회 563
13년 전 조회 1,204
13년 전 조회 1,678
13년 전 조회 1,413
13년 전 조회 1,199
13년 전 조회 854
13년 전 조회 518
13년 전 조회 916
13년 전 조회 773
13년 전 조회 599
13년 전 조회 606
13년 전 조회 1,055
13년 전 조회 492
13년 전 조회 457
13년 전 조회 544
13년 전 조회 463
13년 전 조회 1,085
13년 전 조회 780
13년 전 조회 2,297
13년 전 조회 546
13년 전 조회 819
13년 전 조회 1,565
13년 전 조회 744
13년 전 조회 687
13년 전 조회 641
13년 전 조회 747
13년 전 조회 1,149
13년 전 조회 711
13년 전 조회 744
13년 전 조회 1,061
13년 전 조회 858
13년 전 조회 1,477
13년 전 조회 960
13년 전 조회 469
13년 전 조회 1,033
13년 전 조회 4,341
13년 전 조회 630
13년 전 조회 1,132
13년 전 조회 2,763
13년 전 조회 1,349
13년 전 조회 1,721
13년 전 조회 1,348
13년 전 조회 2,007
13년 전 조회 1,412
13년 전 조회 1,001
13년 전 조회 480
13년 전 조회 1.3만
13년 전 조회 1,253
13년 전 조회 3,389
13년 전 조회 1,026
13년 전 조회 483
13년 전 조회 656
13년 전 조회 474
🐛 버그신고