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년 전 조회 652
13년 전 조회 713
13년 전 조회 948
13년 전 조회 867
13년 전 조회 660
13년 전 조회 1,488
13년 전 조회 840
13년 전 조회 6,024
13년 전 조회 1,185
13년 전 조회 817
13년 전 조회 1,849
13년 전 조회 661
13년 전 조회 1,590
13년 전 조회 3,064
13년 전 조회 671
13년 전 조회 686
13년 전 조회 783
13년 전 조회 701
13년 전 조회 602
13년 전 조회 858
13년 전 조회 602
13년 전 조회 1,144
13년 전 조회 1,109
13년 전 조회 889
13년 전 조회 649
13년 전 조회 802
13년 전 조회 1,580
13년 전 조회 628
13년 전 조회 2,607
13년 전 조회 2,332
13년 전 조회 2,203
13년 전 조회 1,519
13년 전 조회 818
13년 전 조회 3,970
13년 전 조회 1,820
13년 전 조회 2,243
13년 전 조회 653
13년 전 조회 617
13년 전 조회 1,737
13년 전 조회 743
13년 전 조회 1,968
13년 전 조회 1,653
13년 전 조회 1,447
13년 전 조회 1,366
13년 전 조회 4,778
13년 전 조회 3,191
13년 전 조회 1,559
13년 전 조회 647
13년 전 조회 1,303
13년 전 조회 1,779
13년 전 조회 1,499
13년 전 조회 1,288
13년 전 조회 961
13년 전 조회 621
13년 전 조회 1,024
13년 전 조회 876
13년 전 조회 700
13년 전 조회 694
13년 전 조회 1,157
13년 전 조회 595
13년 전 조회 550
13년 전 조회 636
13년 전 조회 551
13년 전 조회 1,185
13년 전 조회 881
13년 전 조회 2,402
13년 전 조회 637
13년 전 조회 911
13년 전 조회 1,659
13년 전 조회 839
13년 전 조회 786
13년 전 조회 724
13년 전 조회 845
13년 전 조회 1,243
13년 전 조회 803
13년 전 조회 842
13년 전 조회 1,161
13년 전 조회 957
13년 전 조회 1,578
13년 전 조회 1,057
13년 전 조회 577
13년 전 조회 1,112
13년 전 조회 4,425
13년 전 조회 723
13년 전 조회 1,226
13년 전 조회 2,871
13년 전 조회 1,445
13년 전 조회 1,805
13년 전 조회 1,440
13년 전 조회 2,101
13년 전 조회 1,510
13년 전 조회 1,101
13년 전 조회 568
13년 전 조회 1.3만
13년 전 조회 1,358
13년 전 조회 3,493
13년 전 조회 1,122
13년 전 조회 582
13년 전 조회 755
13년 전 조회 564
🐛 버그신고