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,321
13년 전 조회 1,389
13년 전 조회 1,635
13년 전 조회 1,550
13년 전 조회 1,341
13년 전 조회 2,175
13년 전 조회 1,521
13년 전 조회 6,720
13년 전 조회 1,876
13년 전 조회 1,487
13년 전 조회 2,535
13년 전 조회 1,332
13년 전 조회 2,280
13년 전 조회 3,788
13년 전 조회 1,336
13년 전 조회 1,347
13년 전 조회 1,458
13년 전 조회 1,336
13년 전 조회 1,263
13년 전 조회 1,527
13년 전 조회 1,249
13년 전 조회 1,804
13년 전 조회 1,791
13년 전 조회 1,531
13년 전 조회 1,297
13년 전 조회 1,474
13년 전 조회 2,230
13년 전 조회 1,234
13년 전 조회 3,244
13년 전 조회 2,935
13년 전 조회 2,843
13년 전 조회 2,140
13년 전 조회 1,451
13년 전 조회 4,602
13년 전 조회 2,442
13년 전 조회 2,911
13년 전 조회 1,288
13년 전 조회 1,221
13년 전 조회 2,389
13년 전 조회 1,387
13년 전 조회 2,617
13년 전 조회 2,267
13년 전 조회 2,101
13년 전 조회 1,950
13년 전 조회 5,397
13년 전 조회 3,787
13년 전 조회 2,134
13년 전 조회 1,221
13년 전 조회 1,873
13년 전 조회 2,364
13년 전 조회 2,104
13년 전 조회 1,888
13년 전 조회 1,578
13년 전 조회 1,211
13년 전 조회 1,636
13년 전 조회 1,475
13년 전 조회 1,300
13년 전 조회 1,291
13년 전 조회 1,754
13년 전 조회 1,193
13년 전 조회 1,154
13년 전 조회 1,239
13년 전 조회 1,172
13년 전 조회 1,790
13년 전 조회 1,491
13년 전 조회 3,007
13년 전 조회 1,245
13년 전 조회 1,520
13년 전 조회 2,299
13년 전 조회 1,449
13년 전 조회 1,368
13년 전 조회 1,347
13년 전 조회 1,448
13년 전 조회 1,848
13년 전 조회 1,416
13년 전 조회 1,434
13년 전 조회 1,751
13년 전 조회 1,560
13년 전 조회 2,196
13년 전 조회 1,650
13년 전 조회 1,186
13년 전 조회 1,787
13년 전 조회 5,129
13년 전 조회 1,437
13년 전 조회 1,965
13년 전 조회 3,577
13년 전 조회 2,189
13년 전 조회 2,521
13년 전 조회 2,149
13년 전 조회 2,808
13년 전 조회 2,231
13년 전 조회 1,822
13년 전 조회 1,285
13년 전 조회 1.4만
13년 전 조회 2,059
13년 전 조회 4,183
13년 전 조회 1,822
13년 전 조회 1,265
13년 전 조회 1,423
13년 전 조회 1,270