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년 전 조회 478
13년 전 조회 544
13년 전 조회 781
13년 전 조회 706
13년 전 조회 497
13년 전 조회 1,339
13년 전 조회 680
13년 전 조회 5,864
13년 전 조회 1,025
13년 전 조회 660
13년 전 조회 1,697
13년 전 조회 504
13년 전 조회 1,423
13년 전 조회 2,899
13년 전 조회 508
13년 전 조회 544
13년 전 조회 632
13년 전 조회 537
13년 전 조회 439
13년 전 조회 700
13년 전 조회 444
13년 전 조회 984
13년 전 조회 956
13년 전 조회 724
13년 전 조회 482
13년 전 조회 640
13년 전 조회 1,418
13년 전 조회 471
13년 전 조회 2,449
13년 전 조회 2,161
13년 전 조회 2,041
13년 전 조회 1,357
13년 전 조회 666
13년 전 조회 3,801
13년 전 조회 1,670
13년 전 조회 2,086
13년 전 조회 498
13년 전 조회 464
13년 전 조회 1,599
13년 전 조회 584
13년 전 조회 1,809
13년 전 조회 1,492
13년 전 조회 1,285
13년 전 조회 1,210
13년 전 조회 4,606
13년 전 조회 3,042
13년 전 조회 1,405
13년 전 조회 489
13년 전 조회 1,139
13년 전 조회 1,612
13년 전 조회 1,345
13년 전 조회 1,130
13년 전 조회 794
13년 전 조회 459
13년 전 조회 851
13년 전 조회 717
13년 전 조회 540
13년 전 조회 546
13년 전 조회 998
13년 전 조회 446
13년 전 조회 401
13년 전 조회 489
13년 전 조회 405
13년 전 조회 1,030
13년 전 조회 723
13년 전 조회 2,237
13년 전 조회 488
13년 전 조회 767
13년 전 조회 1,505
13년 전 조회 686
13년 전 조회 622
13년 전 조회 583
13년 전 조회 693
13년 전 조회 1,093
13년 전 조회 655
13년 전 조회 683
13년 전 조회 994
13년 전 조회 808
13년 전 조회 1,413
13년 전 조회 904
13년 전 조회 416
13년 전 조회 967
13년 전 조회 4,272
13년 전 조회 568
13년 전 조회 1,061
13년 전 조회 2,701
13년 전 조회 1,280
13년 전 조회 1,654
13년 전 조회 1,286
13년 전 조회 1,949
13년 전 조회 1,354
13년 전 조회 935
13년 전 조회 417
13년 전 조회 1.3만
13년 전 조회 1,192
13년 전 조회 3,334
13년 전 조회 967
13년 전 조회 426
13년 전 조회 596
13년 전 조회 413
🐛 버그신고