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년 전 조회 506
13년 전 조회 572
13년 전 조회 811
13년 전 조회 730
13년 전 조회 521
13년 전 조회 1,362
13년 전 조회 709
13년 전 조회 5,889
13년 전 조회 1,052
13년 전 조회 687
13년 전 조회 1,723
13년 전 조회 526
13년 전 조회 1,452
13년 전 조회 2,924
13년 전 조회 534
13년 전 조회 568
13년 전 조회 658
13년 전 조회 564
13년 전 조회 468
13년 전 조회 725
13년 전 조회 472
13년 전 조회 1,007
13년 전 조회 984
13년 전 조회 751
13년 전 조회 508
13년 전 조회 670
13년 전 조회 1,446
13년 전 조회 495
13년 전 조회 2,476
13년 전 조회 2,187
13년 전 조회 2,069
13년 전 조회 1,380
13년 전 조회 692
13년 전 조회 3,829
13년 전 조회 1,694
13년 전 조회 2,114
13년 전 조회 522
13년 전 조회 489
13년 전 조회 1,623
13년 전 조회 610
13년 전 조회 1,837
13년 전 조회 1,515
13년 전 조회 1,307
13년 전 조회 1,236
13년 전 조회 4,634
13년 전 조회 3,067
13년 전 조회 1,427
13년 전 조회 514
13년 전 조회 1,164
13년 전 조회 1,637
13년 전 조회 1,373
13년 전 조회 1,154
13년 전 조회 821
13년 전 조회 483
13년 전 조회 878
13년 전 조회 741
13년 전 조회 562
13년 전 조회 570
13년 전 조회 1,020
13년 전 조회 468
13년 전 조회 422
13년 전 조회 509
13년 전 조회 425
13년 전 조회 1,054
13년 전 조회 751
13년 전 조회 2,267
13년 전 조회 510
13년 전 조회 792
13년 전 조회 1,530
13년 전 조회 709
13년 전 조회 649
13년 전 조회 608
13년 전 조회 718
13년 전 조회 1,122
13년 전 조회 679
13년 전 조회 709
13년 전 조회 1,026
13년 전 조회 827
13년 전 조회 1,443
13년 전 조회 925
13년 전 조회 438
13년 전 조회 990
13년 전 조회 4,303
13년 전 조회 597
13년 전 조회 1,090
13년 전 조회 2,731
13년 전 조회 1,310
13년 전 조회 1,683
13년 전 조회 1,313
13년 전 조회 1,975
13년 전 조회 1,385
13년 전 조회 960
13년 전 조회 439
13년 전 조회 1.3만
13년 전 조회 1,221
13년 전 조회 3,362
13년 전 조회 992
13년 전 조회 451
13년 전 조회 622
13년 전 조회 441
🐛 버그신고