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,175
13년 전 조회 1,234
13년 전 조회 1,488
13년 전 조회 1,408
13년 전 조회 1,205
13년 전 조회 2,022
13년 전 조회 1,389
13년 전 조회 6,580
13년 전 조회 1,744
13년 전 조회 1,368
13년 전 조회 2,396
13년 전 조회 1,203
13년 전 조회 2,147
13년 전 조회 3,651
13년 전 조회 1,198
13년 전 조회 1,209
13년 전 조회 1,322
13년 전 조회 1,221
13년 전 조회 1,128
13년 전 조회 1,405
13년 전 조회 1,125
13년 전 조회 1,679
13년 전 조회 1,639
13년 전 조회 1,415
13년 전 조회 1,157
13년 전 조회 1,354
13년 전 조회 2,108
13년 전 조회 1,118
13년 전 조회 3,122
13년 전 조회 2,824
13년 전 조회 2,709
13년 전 조회 2,027
13년 전 조회 1,332
13년 전 조회 4,472
13년 전 조회 2,293
13년 전 조회 2,762
13년 전 조회 1,142
13년 전 조회 1,073
13년 전 조회 2,221
13년 전 조회 1,235
13년 전 조회 2,473
13년 전 조회 2,130
13년 전 조회 1,954
13년 전 조회 1,821
13년 전 조회 5,251
13년 전 조회 3,635
13년 전 조회 1,995
13년 전 조회 1,072
13년 전 조회 1,728
13년 전 조회 2,220
13년 전 조회 1,941
13년 전 조회 1,735
13년 전 조회 1,415
13년 전 조회 1,061
13년 전 조회 1,490
13년 전 조회 1,324
13년 전 조회 1,152
13년 전 조회 1,129
13년 전 조회 1,595
13년 전 조회 1,051
13년 전 조회 1,000
13년 전 조회 1,094
13년 전 조회 1,010
13년 전 조회 1,640
13년 전 조회 1,344
13년 전 조회 2,851
13년 전 조회 1,095
13년 전 조회 1,369
13년 전 조회 2,147
13년 전 조회 1,299
13년 전 조회 1,223
13년 전 조회 1,181
13년 전 조회 1,310
13년 전 조회 1,696
13년 전 조회 1,264
13년 전 조회 1,305
13년 전 조회 1,609
13년 전 조회 1,429
13년 전 조회 2,045
13년 전 조회 1,517
13년 전 조회 1,036
13년 전 조회 1,629
13년 전 조회 4,963
13년 전 조회 1,278
13년 전 조회 1,800
13년 전 조회 3,411
13년 전 조회 2,011
13년 전 조회 2,356
13년 전 조회 1,991
13년 전 조회 2,664
13년 전 조회 2,076
13년 전 조회 1,673
13년 전 조회 1,146
13년 전 조회 1.4만
13년 전 조회 1,930
13년 전 조회 4,056
13년 전 조회 1,690
13년 전 조회 1,137
13년 전 조회 1,301
13년 전 조회 1,151