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,291
13년 전 조회 1,361
13년 전 조회 1,607
13년 전 조회 1,518
13년 전 조회 1,308
13년 전 조회 2,140
13년 전 조회 1,490
13년 전 조회 6,691
13년 전 조회 1,843
13년 전 조회 1,461
13년 전 조회 2,503
13년 전 조회 1,304
13년 전 조회 2,253
13년 전 조회 3,763
13년 전 조회 1,307
13년 전 조회 1,318
13년 전 조회 1,434
13년 전 조회 1,302
13년 전 조회 1,233
13년 전 조회 1,503
13년 전 조회 1,229
13년 전 조회 1,776
13년 전 조회 1,754
13년 전 조회 1,508
13년 전 조회 1,264
13년 전 조회 1,452
13년 전 조회 2,209
13년 전 조회 1,209
13년 전 조회 3,221
13년 전 조회 2,914
13년 전 조회 2,810
13년 전 조회 2,114
13년 전 조회 1,426
13년 전 조회 4,572
13년 전 조회 2,410
13년 전 조회 2,864
13년 전 조회 1,252
13년 전 조회 1,171
13년 전 조회 2,353
13년 전 조회 1,346
13년 전 조회 2,582
13년 전 조회 2,236
13년 전 조회 2,067
13년 전 조회 1,926
13년 전 조회 5,349
13년 전 조회 3,746
13년 전 조회 2,092
13년 전 조회 1,185
13년 전 조회 1,836
13년 전 조회 2,327
13년 전 조회 2,064
13년 전 조회 1,842
13년 전 조회 1,529
13년 전 조회 1,165
13년 전 조회 1,601
13년 전 조회 1,441
13년 전 조회 1,254
13년 전 조회 1,248
13년 전 조회 1,712
13년 전 조회 1,152
13년 전 조회 1,114
13년 전 조회 1,210
13년 전 조회 1,129
13년 전 조회 1,757
13년 전 조회 1,461
13년 전 조회 2,969
13년 전 조회 1,202
13년 전 조회 1,482
13년 전 조회 2,265
13년 전 조회 1,400
13년 전 조회 1,331
13년 전 조회 1,305
13년 전 조회 1,418
13년 전 조회 1,811
13년 전 조회 1,373
13년 전 조회 1,395
13년 전 조회 1,711
13년 전 조회 1,522
13년 전 조회 2,160
13년 전 조회 1,625
13년 전 조회 1,145
13년 전 조회 1,740
13년 전 조회 5,071
13년 전 조회 1,384
13년 전 조회 1,912
13년 전 조회 3,526
13년 전 조회 2,130
13년 전 조회 2,478
13년 전 조회 2,096
13년 전 조회 2,771
13년 전 조회 2,185
13년 전 조회 1,778
13년 전 조회 1,240
13년 전 조회 1.4만
13년 전 조회 2,020
13년 전 조회 4,135
13년 전 조회 1,782
13년 전 조회 1,217
13년 전 조회 1,374
13년 전 조회 1,223