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년 전 조회 625
13년 전 조회 678
13년 전 조회 921
13년 전 조회 834
13년 전 조회 621
13년 전 조회 1,467
13년 전 조회 818
13년 전 조회 5,991
13년 전 조회 1,160
13년 전 조회 789
13년 전 조회 1,819
13년 전 조회 641
13년 전 조회 1,568
13년 전 조회 3,038
13년 전 조회 644
13년 전 조회 658
13년 전 조회 755
13년 전 조회 678
13년 전 조회 576
13년 전 조회 826
13년 전 조회 573
13년 전 조회 1,120
13년 전 조회 1,088
13년 전 조회 873
13년 전 조회 618
13년 전 조회 779
13년 전 조회 1,558
13년 전 조회 598
13년 전 조회 2,582
13년 전 조회 2,305
13년 전 조회 2,182
13년 전 조회 1,496
13년 전 조회 790
13년 전 조회 3,941
13년 전 조회 1,794
13년 전 조회 2,218
13년 전 조회 633
13년 전 조회 597
13년 전 조회 1,714
13년 전 조회 721
13년 전 조회 1,940
13년 전 조회 1,624
13년 전 조회 1,417
13년 전 조회 1,340
13년 전 조회 4,754
13년 전 조회 3,169
13년 전 조회 1,534
13년 전 조회 617
13년 전 조회 1,271
13년 전 조회 1,746
13년 전 조회 1,472
13년 전 조회 1,264
13년 전 조회 926
13년 전 조회 597
13년 전 조회 988
13년 전 조회 844
13년 전 조회 677
13년 전 조회 667
13년 전 조회 1,127
13년 전 조회 563
13년 전 조회 528
13년 전 조회 618
13년 전 조회 522
13년 전 조회 1,159
13년 전 조회 860
13년 전 조회 2,373
13년 전 조회 613
13년 전 조회 886
13년 전 조회 1,637
13년 전 조회 801
13년 전 조회 767
13년 전 조회 705
13년 전 조회 812
13년 전 조회 1,213
13년 전 조회 777
13년 전 조회 805
13년 전 조회 1,134
13년 전 조회 927
13년 전 조회 1,542
13년 전 조회 1,031
13년 전 조회 548
13년 전 조회 1,086
13년 전 조회 4,405
13년 전 조회 696
13년 전 조회 1,194
13년 전 조회 2,837
13년 전 조회 1,424
13년 전 조회 1,777
13년 전 조회 1,415
13년 전 조회 2,079
13년 전 조회 1,481
13년 전 조회 1,067
13년 전 조회 544
13년 전 조회 1.3만
13년 전 조회 1,329
13년 전 조회 3,468
13년 전 조회 1,099
13년 전 조회 551
13년 전 조회 727
13년 전 조회 535
🐛 버그신고