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년 전 조회 663
13년 전 조회 731
13년 전 조회 964
13년 전 조회 880
13년 전 조회 675
13년 전 조회 1,503
13년 전 조회 863
13년 전 조회 6,038
13년 전 조회 1,203
13년 전 조회 832
13년 전 조회 1,869
13년 전 조회 676
13년 전 조회 1,611
13년 전 조회 3,081
13년 전 조회 695
13년 전 조회 704
13년 전 조회 802
13년 전 조회 716
13년 전 조회 619
13년 전 조회 876
13년 전 조회 622
13년 전 조회 1,160
13년 전 조회 1,128
13년 전 조회 902
13년 전 조회 662
13년 전 조회 819
13년 전 조회 1,595
13년 전 조회 641
13년 전 조회 2,623
13년 전 조회 2,348
13년 전 조회 2,214
13년 전 조회 1,532
13년 전 조회 831
13년 전 조회 3,987
13년 전 조회 1,834
13년 전 조회 2,259
13년 전 조회 671
13년 전 조회 633
13년 전 조회 1,752
13년 전 조회 758
13년 전 조회 1,986
13년 전 조회 1,667
13년 전 조회 1,462
13년 전 조회 1,380
13년 전 조회 4,790
13년 전 조회 3,206
13년 전 조회 1,573
13년 전 조회 659
13년 전 조회 1,317
13년 전 조회 1,788
13년 전 조회 1,517
13년 전 조회 1,305
13년 전 조회 974
13년 전 조회 630
13년 전 조회 1,043
13년 전 조회 893
13년 전 조회 717
13년 전 조회 710
13년 전 조회 1,172
13년 전 조회 619
13년 전 조회 567
13년 전 조회 651
13년 전 조회 565
13년 전 조회 1,196
13년 전 조회 901
13년 전 조회 2,416
13년 전 조회 654
13년 전 조회 924
13년 전 조회 1,674
13년 전 조회 855
13년 전 조회 805
13년 전 조회 746
13년 전 조회 865
13년 전 조회 1,257
13년 전 조회 820
13년 전 조회 860
13년 전 조회 1,175
13년 전 조회 977
13년 전 조회 1,600
13년 전 조회 1,072
13년 전 조회 593
13년 전 조회 1,129
13년 전 조회 4,441
13년 전 조회 740
13년 전 조회 1,242
13년 전 조회 2,886
13년 전 조회 1,459
13년 전 조회 1,826
13년 전 조회 1,458
13년 전 조회 2,115
13년 전 조회 1,528
13년 전 조회 1,113
13년 전 조회 590
13년 전 조회 1.3만
13년 전 조회 1,379
13년 전 조회 3,516
13년 전 조회 1,137
13년 전 조회 597
13년 전 조회 768
13년 전 조회 589
🐛 버그신고