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년 전 조회 559
13년 전 조회 619
13년 전 조회 862
13년 전 조회 783
13년 전 조회 563
13년 전 조회 1,408
13년 전 조회 748
13년 전 조회 5,929
13년 전 조회 1,103
13년 전 조회 731
13년 전 조회 1,756
13년 전 조회 573
13년 전 조회 1,499
13년 전 조회 2,978
13년 전 조회 584
13년 전 조회 608
13년 전 조회 705
13년 전 조회 613
13년 전 조회 511
13년 전 조회 768
13년 전 조회 512
13년 전 조회 1,051
13년 전 조회 1,031
13년 전 조회 799
13년 전 조회 557
13년 전 조회 712
13년 전 조회 1,487
13년 전 조회 534
13년 전 조회 2,523
13년 전 조회 2,238
13년 전 조회 2,121
13년 전 조회 1,432
13년 전 조회 734
13년 전 조회 3,879
13년 전 조회 1,737
13년 전 조회 2,163
13년 전 조회 570
13년 전 조회 526
13년 전 조회 1,659
13년 전 조회 653
13년 전 조회 1,881
13년 전 조회 1,570
13년 전 조회 1,353
13년 전 조회 1,283
13년 전 조회 4,674
13년 전 조회 3,103
13년 전 조회 1,472
13년 전 조회 566
13년 전 조회 1,207
13년 전 조회 1,683
13년 전 조회 1,418
13년 전 조회 1,204
13년 전 조회 860
13년 전 조회 528
13년 전 조회 921
13년 전 조회 779
13년 전 조회 605
13년 전 조회 609
13년 전 조회 1,061
13년 전 조회 500
13년 전 조회 462
13년 전 조회 550
13년 전 조회 468
13년 전 조회 1,093
13년 전 조회 784
13년 전 조회 2,302
13년 전 조회 553
13년 전 조회 825
13년 전 조회 1,569
13년 전 조회 750
13년 전 조회 695
13년 전 조회 645
13년 전 조회 754
13년 전 조회 1,157
13년 전 조회 712
13년 전 조회 748
13년 전 조회 1,064
13년 전 조회 865
13년 전 조회 1,483
13년 전 조회 964
13년 전 조회 472
13년 전 조회 1,037
13년 전 조회 4,346
13년 전 조회 633
13년 전 조회 1,136
13년 전 조회 2,767
13년 전 조회 1,354
13년 전 조회 1,725
13년 전 조회 1,351
13년 전 조회 2,016
13년 전 조회 1,415
13년 전 조회 1,008
13년 전 조회 482
13년 전 조회 1.3만
13년 전 조회 1,258
13년 전 조회 3,396
13년 전 조회 1,032
13년 전 조회 486
13년 전 조회 659
13년 전 조회 475
🐛 버그신고