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년 전 조회 639
13년 전 조회 697
13년 전 조회 934
13년 전 조회 852
13년 전 조회 641
13년 전 조회 1,478
13년 전 조회 828
13년 전 조회 6,006
13년 전 조회 1,172
13년 전 조회 801
13년 전 조회 1,831
13년 전 조회 655
13년 전 조회 1,581
13년 전 조회 3,050
13년 전 조회 659
13년 전 조회 670
13년 전 조회 771
13년 전 조회 685
13년 전 조회 584
13년 전 조회 841
13년 전 조회 592
13년 전 조회 1,132
13년 전 조회 1,094
13년 전 조회 878
13년 전 조회 635
13년 전 조회 787
13년 전 조회 1,566
13년 전 조회 611
13년 전 조회 2,593
13년 전 조회 2,315
13년 전 조회 2,192
13년 전 조회 1,506
13년 전 조회 801
13년 전 조회 3,956
13년 전 조회 1,803
13년 전 조회 2,235
13년 전 조회 640
13년 전 조회 608
13년 전 조회 1,720
13년 전 조회 733
13년 전 조회 1,955
13년 전 조회 1,641
13년 전 조회 1,431
13년 전 조회 1,352
13년 전 조회 4,765
13년 전 조회 3,179
13년 전 조회 1,546
13년 전 조회 628
13년 전 조회 1,289
13년 전 조회 1,769
13년 전 조회 1,486
13년 전 조회 1,274
13년 전 조회 946
13년 전 조회 607
13년 전 조회 1,006
13년 전 조회 863
13년 전 조회 688
13년 전 조회 681
13년 전 조회 1,145
13년 전 조회 582
13년 전 조회 539
13년 전 조회 625
13년 전 조회 539
13년 전 조회 1,169
13년 전 조회 870
13년 전 조회 2,391
13년 전 조회 621
13년 전 조회 903
13년 전 조회 1,651
13년 전 조회 824
13년 전 조회 777
13년 전 조회 717
13년 전 조회 831
13년 전 조회 1,231
13년 전 조회 791
13년 전 조회 820
13년 전 조회 1,147
13년 전 조회 941
13년 전 조회 1,558
13년 전 조회 1,043
13년 전 조회 560
13년 전 조회 1,103
13년 전 조회 4,418
13년 전 조회 711
13년 전 조회 1,210
13년 전 조회 2,847
13년 전 조회 1,433
13년 전 조회 1,796
13년 전 조회 1,428
13년 전 조회 2,087
13년 전 조회 1,495
13년 전 조회 1,082
13년 전 조회 556
13년 전 조회 1.3만
13년 전 조회 1,344
13년 전 조회 3,482
13년 전 조회 1,111
13년 전 조회 562
13년 전 조회 738
13년 전 조회 547
🐛 버그신고