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년 전 조회 513
13년 전 조회 577
13년 전 조회 816
13년 전 조회 739
13년 전 조회 530
13년 전 조회 1,368
13년 전 조회 713
13년 전 조회 5,894
13년 전 조회 1,057
13년 전 조회 689
13년 전 조회 1,725
13년 전 조회 534
13년 전 조회 1,459
13년 전 조회 2,931
13년 전 조회 539
13년 전 조회 577
13년 전 조회 665
13년 전 조회 571
13년 전 조회 477
13년 전 조회 732
13년 전 조회 476
13년 전 조회 1,015
13년 전 조회 989
13년 전 조회 758
13년 전 조회 511
13년 전 조회 675
13년 전 조회 1,450
13년 전 조회 499
13년 전 조회 2,483
13년 전 조회 2,197
13년 전 조회 2,072
13년 전 조회 1,388
13년 전 조회 696
13년 전 조회 3,835
13년 전 조회 1,702
13년 전 조회 2,122
13년 전 조회 526
13년 전 조회 493
13년 전 조회 1,627
13년 전 조회 615
13년 전 조회 1,843
13년 전 조회 1,523
13년 전 조회 1,315
13년 전 조회 1,238
13년 전 조회 4,639
13년 전 조회 3,069
13년 전 조회 1,433
13년 전 조회 521
13년 전 조회 1,170
13년 전 조회 1,643
13년 전 조회 1,377
13년 전 조회 1,160
13년 전 조회 824
13년 전 조회 486
13년 전 조회 883
13년 전 조회 746
13년 전 조회 570
13년 전 조회 576
13년 전 조회 1,025
13년 전 조회 473
13년 전 조회 424
13년 전 조회 513
13년 전 조회 430
13년 전 조회 1,057
13년 전 조회 756
13년 전 조회 2,271
13년 전 조회 514
13년 전 조회 796
13년 전 조회 1,538
13년 전 조회 716
13년 전 조회 654
13년 전 조회 610
13년 전 조회 722
13년 전 조회 1,127
13년 전 조회 684
13년 전 조회 714
13년 전 조회 1,030
13년 전 조회 835
13년 전 조회 1,448
13년 전 조회 928
13년 전 조회 443
13년 전 조회 997
13년 전 조회 4,305
13년 전 조회 603
13년 전 조회 1,097
13년 전 조회 2,734
13년 전 조회 1,315
13년 전 조회 1,688
13년 전 조회 1,318
13년 전 조회 1,980
13년 전 조회 1,389
13년 전 조회 962
13년 전 조회 446
13년 전 조회 1.3만
13년 전 조회 1,224
13년 전 조회 3,367
13년 전 조회 998
13년 전 조회 453
13년 전 조회 626
13년 전 조회 443
🐛 버그신고