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년 전 조회 1,571
13년 전 조회 1,682
13년 전 조회 1,912
13년 전 조회 1,825
13년 전 조회 1,590
13년 전 조회 2,409
13년 전 조회 1,779
13년 전 조회 6,980
13년 전 조회 2,145
13년 전 조회 1,763
13년 전 조회 2,801
13년 전 조회 1,597
13년 전 조회 2,544
13년 전 조회 4,024
13년 전 조회 1,591
13년 전 조회 1,586
13년 전 조회 1,717
13년 전 조회 1,601
13년 전 조회 1,498
13년 전 조회 1,761
13년 전 조회 1,512
13년 전 조회 2,032
13년 전 조회 2,052
13년 전 조회 1,764
13년 전 조회 1,524
13년 전 조회 1,718
13년 전 조회 2,451
13년 전 조회 1,477
13년 전 조회 3,461
13년 전 조회 3,190
13년 전 조회 3,051
13년 전 조회 2,368
13년 전 조회 1,664
13년 전 조회 4,840
13년 전 조회 2,663
13년 전 조회 3,137
13년 전 조회 1,531
13년 전 조회 1,489
13년 전 조회 2,640
13년 전 조회 1,638
13년 전 조회 2,853
13년 전 조회 2,518
13년 전 조회 2,324
13년 전 조회 2,167
13년 전 조회 5,618
13년 전 조회 4,016
13년 전 조회 2,398
13년 전 조회 1,473
13년 전 조회 2,127
13년 전 조회 2,597
13년 전 조회 2,334
13년 전 조회 2,149
13년 전 조회 1,852
13년 전 조회 1,491
13년 전 조회 1,894
13년 전 조회 1,755
13년 전 조회 1,595
13년 전 조회 1,568
13년 전 조회 2,018
13년 전 조회 1,475
13년 전 조회 1,427
13년 전 조회 1,488
13년 전 조회 1,433
13년 전 조회 2,037
13년 전 조회 1,738
13년 전 조회 3,269
13년 전 조회 1,494
13년 전 조회 1,788
13년 전 조회 2,546
13년 전 조회 1,683
13년 전 조회 1,639
13년 전 조회 1,582
13년 전 조회 1,704
13년 전 조회 2,105
13년 전 조회 1,669
13년 전 조회 1,711
13년 전 조회 2,052
13년 전 조회 1,834
13년 전 조회 2,454
13년 전 조회 1,896
13년 전 조회 1,456
13년 전 조회 2,076
13년 전 조회 5,396
13년 전 조회 1,738
13년 전 조회 2,254
13년 전 조회 3,861
13년 전 조회 2,450
13년 전 조회 2,807
13년 전 조회 2,430
13년 전 조회 3,091
13년 전 조회 2,515
13년 전 조회 2,101
13년 전 조회 1,567
13년 전 조회 1.4만
13년 전 조회 2,345
13년 전 조회 4,476
13년 전 조회 2,121
13년 전 조회 1,562
13년 전 조회 1,733
13년 전 조회 1,574