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년 전 조회 566
13년 전 조회 623
13년 전 조회 874
13년 전 조회 786
13년 전 조회 565
13년 전 조회 1,414
13년 전 조회 752
13년 전 조회 5,937
13년 전 조회 1,112
13년 전 조회 739
13년 전 조회 1,759
13년 전 조회 583
13년 전 조회 1,511
13년 전 조회 2,983
13년 전 조회 592
13년 전 조회 612
13년 전 조회 713
13년 전 조회 622
13년 전 조회 516
13년 전 조회 775
13년 전 조회 521
13년 전 조회 1,057
13년 전 조회 1,038
13년 전 조회 808
13년 전 조회 563
13년 전 조회 716
13년 전 조회 1,490
13년 전 조회 539
13년 전 조회 2,530
13년 전 조회 2,245
13년 전 조회 2,132
13년 전 조회 1,441
13년 전 조회 737
13년 전 조회 3,888
13년 전 조회 1,745
13년 전 조회 2,166
13년 전 조회 576
13년 전 조회 535
13년 전 조회 1,666
13년 전 조회 662
13년 전 조회 1,888
13년 전 조회 1,575
13년 전 조회 1,359
13년 전 조회 1,290
13년 전 조회 4,686
13년 전 조회 3,118
13년 전 조회 1,478
13년 전 조회 573
13년 전 조회 1,212
13년 전 조회 1,691
13년 전 조회 1,423
13년 전 조회 1,210
13년 전 조회 872
13년 전 조회 539
13년 전 조회 936
13년 전 조회 787
13년 전 조회 614
13년 전 조회 613
13년 전 조회 1,065
13년 전 조회 509
13년 전 조회 468
13년 전 조회 556
13년 전 조회 476
13년 전 조회 1,098
13년 전 조회 794
13년 전 조회 2,308
13년 전 조회 560
13년 전 조회 838
13년 전 조회 1,576
13년 전 조회 759
13년 전 조회 703
13년 전 조회 652
13년 전 조회 766
13년 전 조회 1,165
13년 전 조회 723
13년 전 조회 756
13년 전 조회 1,073
13년 전 조회 877
13년 전 조회 1,495
13년 전 조회 971
13년 전 조회 476
13년 전 조회 1,043
13년 전 조회 4,353
13년 전 조회 638
13년 전 조회 1,141
13년 전 조회 2,775
13년 전 조회 1,362
13년 전 조회 1,727
13년 전 조회 1,360
13년 전 조회 2,019
13년 전 조회 1,423
13년 전 조회 1,019
13년 전 조회 488
13년 전 조회 1.3만
13년 전 조회 1,271
13년 전 조회 3,406
13년 전 조회 1,040
13년 전 조회 494
13년 전 조회 666
13년 전 조회 484
🐛 버그신고