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년 전 조회 547
13년 전 조회 609
13년 전 조회 848
13년 전 조회 769
13년 전 조회 552
13년 전 조회 1,399
13년 전 조회 739
13년 전 조회 5,911
13년 전 조회 1,087
13년 전 조회 717
13년 전 조회 1,749
13년 전 조회 562
13년 전 조회 1,484
13년 전 조회 2,963
13년 전 조회 569
13년 전 조회 601
13년 전 조회 696
13년 전 조회 598
13년 전 조회 499
13년 전 조회 758
13년 전 조회 499
13년 전 조회 1,042
13년 전 조회 1,021
13년 전 조회 790
13년 전 조회 541
13년 전 조회 705
13년 전 조회 1,477
13년 전 조회 524
13년 전 조회 2,515
13년 전 조회 2,226
13년 전 조회 2,105
13년 전 조회 1,421
13년 전 조회 719
13년 전 조회 3,864
13년 전 조회 1,727
13년 전 조회 2,150
13년 전 조회 558
13년 전 조회 518
13년 전 조회 1,649
13년 전 조회 641
13년 전 조회 1,871
13년 전 조회 1,560
13년 전 조회 1,345
13년 전 조회 1,264
13년 전 조회 4,664
13년 전 조회 3,086
13년 전 조회 1,461
13년 전 조회 558
13년 전 조회 1,197
13년 전 조회 1,673
13년 전 조회 1,406
13년 전 조회 1,192
13년 전 조회 850
13년 전 조회 515
13년 전 조회 908
13년 전 조회 769
13년 전 조회 589
13년 전 조회 597
13년 전 조회 1,049
13년 전 조회 488
13년 전 조회 449
13년 전 조회 539
13년 전 조회 452
13년 전 조회 1,079
13년 전 조회 777
13년 전 조회 2,295
13년 전 조회 536
13년 전 조회 815
13년 전 조회 1,558
13년 전 조회 738
13년 전 조회 676
13년 전 조회 633
13년 전 조회 743
13년 전 조회 1,144
13년 전 조회 704
13년 전 조회 736
13년 전 조회 1,049
13년 전 조회 851
13년 전 조회 1,471
13년 전 조회 954
13년 전 조회 463
13년 전 조회 1,028
13년 전 조회 4,331
13년 전 조회 625
13년 전 조회 1,120
13년 전 조회 2,757
13년 전 조회 1,343
13년 전 조회 1,712
13년 전 조회 1,341
13년 전 조회 2,000
13년 전 조회 1,405
13년 전 조회 990
13년 전 조회 470
13년 전 조회 1.3만
13년 전 조회 1,247
13년 전 조회 3,380
13년 전 조회 1,020
13년 전 조회 476
13년 전 조회 651
13년 전 조회 467
🐛 버그신고