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,268
13년 전 조회 1,346
13년 전 조회 1,588
13년 전 조회 1,493
13년 전 조회 1,292
13년 전 조회 2,119
13년 전 조회 1,474
13년 전 조회 6,663
13년 전 조회 1,827
13년 전 조회 1,441
13년 전 조회 2,480
13년 전 조회 1,289
13년 전 조회 2,234
13년 전 조회 3,745
13년 전 조회 1,283
13년 전 조회 1,296
13년 전 조회 1,415
13년 전 조회 1,287
13년 전 조회 1,212
13년 전 조회 1,480
13년 전 조회 1,215
13년 전 조회 1,758
13년 전 조회 1,728
13년 전 조회 1,486
13년 전 조회 1,246
13년 전 조회 1,435
13년 전 조회 2,190
13년 전 조회 1,193
13년 전 조회 3,199
13년 전 조회 2,901
13년 전 조회 2,790
13년 전 조회 2,104
13년 전 조회 1,413
13년 전 조회 4,546
13년 전 조회 2,390
13년 전 조회 2,843
13년 전 조회 1,229
13년 전 조회 1,152
13년 전 조회 2,331
13년 전 조회 1,322
13년 전 조회 2,565
13년 전 조회 2,210
13년 전 조회 2,047
13년 전 조회 1,896
13년 전 조회 5,325
13년 전 조회 3,718
13년 전 조회 2,076
13년 전 조회 1,158
13년 전 조회 1,818
13년 전 조회 2,302
13년 전 조회 2,036
13년 전 조회 1,826
13년 전 조회 1,502
13년 전 조회 1,145
13년 전 조회 1,581
13년 전 조회 1,424
13년 전 조회 1,229
13년 전 조회 1,220
13년 전 조회 1,690
13년 전 조회 1,132
13년 전 조회 1,091
13년 전 조회 1,182
13년 전 조회 1,102
13년 전 조회 1,731
13년 전 조회 1,440
13년 전 조회 2,941
13년 전 조회 1,179
13년 전 조회 1,457
13년 전 조회 2,237
13년 전 조회 1,382
13년 전 조회 1,316
13년 전 조회 1,277
13년 전 조회 1,398
13년 전 조회 1,781
13년 전 조회 1,349
13년 전 조회 1,382
13년 전 조회 1,698
13년 전 조회 1,508
13년 전 조회 2,135
13년 전 조회 1,600
13년 전 조회 1,124
13년 전 조회 1,716
13년 전 조회 5,044
13년 전 조회 1,358
13년 전 조회 1,886
13년 전 조회 3,489
13년 전 조회 2,097
13년 전 조회 2,450
13년 전 조회 2,076
13년 전 조회 2,743
13년 전 조회 2,159
13년 전 조회 1,749
13년 전 조회 1,219
13년 전 조회 1.4만
13년 전 조회 2,001
13년 전 조회 4,114
13년 전 조회 1,758
13년 전 조회 1,196
13년 전 조회 1,359
13년 전 조회 1,200