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년 전 조회 669
13년 전 조회 737
13년 전 조회 970
13년 전 조회 886
13년 전 조회 682
13년 전 조회 1,511
13년 전 조회 871
13년 전 조회 6,039
13년 전 조회 1,210
13년 전 조회 837
13년 전 조회 1,873
13년 전 조회 681
13년 전 조회 1,617
13년 전 조회 3,088
13년 전 조회 703
13년 전 조회 713
13년 전 조회 812
13년 전 조회 727
13년 전 조회 628
13년 전 조회 884
13년 전 조회 631
13년 전 조회 1,166
13년 전 조회 1,134
13년 전 조회 911
13년 전 조회 665
13년 전 조회 826
13년 전 조회 1,602
13년 전 조회 647
13년 전 조회 2,629
13년 전 조회 2,354
13년 전 조회 2,218
13년 전 조회 1,542
13년 전 조회 840
13년 전 조회 3,997
13년 전 조회 1,844
13년 전 조회 2,266
13년 전 조회 676
13년 전 조회 640
13년 전 조회 1,755
13년 전 조회 767
13년 전 조회 1,996
13년 전 조회 1,669
13년 전 조회 1,468
13년 전 조회 1,388
13년 전 조회 4,794
13년 전 조회 3,211
13년 전 조회 1,581
13년 전 조회 664
13년 전 조회 1,324
13년 전 조회 1,794
13년 전 조회 1,524
13년 전 조회 1,320
13년 전 조회 982
13년 전 조회 637
13년 전 조회 1,049
13년 전 조회 899
13년 전 조회 725
13년 전 조회 718
13년 전 조회 1,179
13년 전 조회 628
13년 전 조회 573
13년 전 조회 659
13년 전 조회 575
13년 전 조회 1,205
13년 전 조회 907
13년 전 조회 2,421
13년 전 조회 661
13년 전 조회 932
13년 전 조회 1,683
13년 전 조회 862
13년 전 조회 812
13년 전 조회 754
13년 전 조회 874
13년 전 조회 1,263
13년 전 조회 830
13년 전 조회 868
13년 전 조회 1,182
13년 전 조회 988
13년 전 조회 1,606
13년 전 조회 1,078
13년 전 조회 602
13년 전 조회 1,140
13년 전 조회 4,450
13년 전 조회 744
13년 전 조회 1,249
13년 전 조회 2,891
13년 전 조회 1,463
13년 전 조회 1,833
13년 전 조회 1,467
13년 전 조회 2,124
13년 전 조회 1,541
13년 전 조회 1,119
13년 전 조회 601
13년 전 조회 1.3만
13년 전 조회 1,386
13년 전 조회 3,523
13년 전 조회 1,147
13년 전 조회 604
13년 전 조회 772
13년 전 조회 597