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년 전 조회 570
13년 전 조회 810
13년 전 조회 729
13년 전 조회 520
13년 전 조회 1,361
13년 전 조회 709
13년 전 조회 5,887
13년 전 조회 1,051
13년 전 조회 685
13년 전 조회 1,719
13년 전 조회 526
13년 전 조회 1,452
13년 전 조회 2,924
13년 전 조회 533
13년 전 조회 567
13년 전 조회 658
13년 전 조회 562
13년 전 조회 468
13년 전 조회 725
13년 전 조회 470
13년 전 조회 1,007
13년 전 조회 983
13년 전 조회 751
13년 전 조회 507
13년 전 조회 666
13년 전 조회 1,446
13년 전 조회 494
13년 전 조회 2,475
13년 전 조회 2,187
13년 전 조회 2,068
13년 전 조회 1,379
13년 전 조회 691
13년 전 조회 3,829
13년 전 조회 1,694
13년 전 조회 2,113
13년 전 조회 522
13년 전 조회 487
13년 전 조회 1,621
13년 전 조회 608
13년 전 조회 1,836
13년 전 조회 1,514
13년 전 조회 1,307
13년 전 조회 1,235
13년 전 조회 4,633
13년 전 조회 3,067
13년 전 조회 1,426
13년 전 조회 514
13년 전 조회 1,164
13년 전 조회 1,636
13년 전 조회 1,372
13년 전 조회 1,154
13년 전 조회 816
13년 전 조회 482
13년 전 조회 877
13년 전 조회 740
13년 전 조회 561
13년 전 조회 568
13년 전 조회 1,019
13년 전 조회 467
13년 전 조회 421
13년 전 조회 508
13년 전 조회 424
13년 전 조회 1,054
13년 전 조회 749
13년 전 조회 2,267
13년 전 조회 509
13년 전 조회 791
13년 전 조회 1,530
13년 전 조회 707
13년 전 조회 649
13년 전 조회 607
13년 전 조회 717
13년 전 조회 1,120
13년 전 조회 678
13년 전 조회 709
13년 전 조회 1,021
13년 전 조회 827
13년 전 조회 1,441
13년 전 조회 925
13년 전 조회 437
13년 전 조회 989
13년 전 조회 4,301
13년 전 조회 596
13년 전 조회 1,089
13년 전 조회 2,731
13년 전 조회 1,309
13년 전 조회 1,681
13년 전 조회 1,312
13년 전 조회 1,974
13년 전 조회 1,383
13년 전 조회 958
13년 전 조회 436
13년 전 조회 1.3만
13년 전 조회 1,220
13년 전 조회 3,362
13년 전 조회 992
13년 전 조회 451
13년 전 조회 622
13년 전 조회 441
🐛 버그신고