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년 전 조회 606
13년 전 조회 661
13년 전 조회 905
13년 전 조회 824
13년 전 조회 607
13년 전 조회 1,454
13년 전 조회 794
13년 전 조회 5,976
13년 전 조회 1,146
13년 전 조회 775
13년 전 조회 1,798
13년 전 조회 622
13년 전 조회 1,552
13년 전 조회 3,023
13년 전 조회 629
13년 전 조회 640
13년 전 조회 741
13년 전 조회 659
13년 전 조회 566
13년 전 조회 811
13년 전 조회 557
13년 전 조회 1,098
13년 전 조회 1,072
13년 전 조회 850
13년 전 조회 600
13년 전 조회 764
13년 전 조회 1,536
13년 전 조회 581
13년 전 조회 2,567
13년 전 조회 2,288
13년 전 조회 2,172
13년 전 조회 1,482
13년 전 조회 772
13년 전 조회 3,926
13년 전 조회 1,780
13년 전 조회 2,199
13년 전 조회 616
13년 전 조회 580
13년 전 조회 1,703
13년 전 조회 704
13년 전 조회 1,928
13년 전 조회 1,613
13년 전 조회 1,402
13년 전 조회 1,330
13년 전 조회 4,736
13년 전 조회 3,154
13년 전 조회 1,519
13년 전 조회 606
13년 전 조회 1,251
13년 전 조회 1,728
13년 전 조회 1,459
13년 전 조회 1,251
13년 전 조회 909
13년 전 조회 577
13년 전 조회 976
13년 전 조회 829
13년 전 조회 659
13년 전 조회 655
13년 전 조회 1,111
13년 전 조회 550
13년 전 조회 507
13년 전 조회 603
13년 전 조회 514
13년 전 조회 1,143
13년 전 조회 841
13년 전 조회 2,352
13년 전 조회 600
13년 전 조회 873
13년 전 조회 1,619
13년 전 조회 791
13년 전 조회 741
13년 전 조회 684
13년 전 조회 804
13년 전 조회 1,196
13년 전 조회 761
13년 전 조회 791
13년 전 조회 1,116
13년 전 조회 911
13년 전 조회 1,533
13년 전 조회 1,017
13년 전 조회 531
13년 전 조회 1,073
13년 전 조회 4,383
13년 전 조회 676
13년 전 조회 1,179
13년 전 조회 2,817
13년 전 조회 1,402
13년 전 조회 1,765
13년 전 조회 1,401
13년 전 조회 2,067
13년 전 조회 1,465
13년 전 조회 1,055
13년 전 조회 528
13년 전 조회 1.3만
13년 전 조회 1,310
13년 전 조회 3,441
13년 전 조회 1,079
13년 전 조회 532
13년 전 조회 712
13년 전 조회 527
🐛 버그신고