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년 전 조회 496
13년 전 조회 560
13년 전 조회 799
13년 전 조회 720
13년 전 조회 512
13년 전 조회 1,348
13년 전 조회 696
13년 전 조회 5,880
13년 전 조회 1,040
13년 전 조회 674
13년 전 조회 1,710
13년 전 조회 521
13년 전 조회 1,441
13년 전 조회 2,914
13년 전 조회 521
13년 전 조회 557
13년 전 조회 646
13년 전 조회 553
13년 전 조회 455
13년 전 조회 714
13년 전 조회 459
13년 전 조회 999
13년 전 조회 971
13년 전 조회 739
13년 전 조회 496
13년 전 조회 654
13년 전 조회 1,434
13년 전 조회 487
13년 전 조회 2,465
13년 전 조회 2,173
13년 전 조회 2,058
13년 전 조회 1,373
13년 전 조회 682
13년 전 조회 3,818
13년 전 조회 1,682
13년 전 조회 2,102
13년 전 조회 510
13년 전 조회 480
13년 전 조회 1,611
13년 전 조회 600
13년 전 조회 1,823
13년 전 조회 1,506
13년 전 조회 1,298
13년 전 조회 1,226
13년 전 조회 4,623
13년 전 조회 3,056
13년 전 조회 1,417
13년 전 조회 502
13년 전 조회 1,152
13년 전 조회 1,623
13년 전 조회 1,361
13년 전 조회 1,145
13년 전 조회 804
13년 전 조회 470
13년 전 조회 863
13년 전 조회 732
13년 전 조회 555
13년 전 조회 560
13년 전 조회 1,009
13년 전 조회 459
13년 전 조회 413
13년 전 조회 500
13년 전 조회 419
13년 전 조회 1,044
13년 전 조회 739
13년 전 조회 2,253
13년 전 조회 501
13년 전 조회 782
13년 전 조회 1,519
13년 전 조회 700
13년 전 조회 639
13년 전 조회 596
13년 전 조회 708
13년 전 조회 1,108
13년 전 조회 671
13년 전 조회 698
13년 전 조회 1,010
13년 전 조회 820
13년 전 조회 1,431
13년 전 조회 915
13년 전 조회 430
13년 전 조회 978
13년 전 조회 4,289
13년 전 조회 581
13년 전 조회 1,078
13년 전 조회 2,720
13년 전 조회 1,298
13년 전 조회 1,671
13년 전 조회 1,304
13년 전 조회 1,963
13년 전 조회 1,371
13년 전 조회 949
13년 전 조회 431
13년 전 조회 1.3만
13년 전 조회 1,208
13년 전 조회 3,351
13년 전 조회 982
13년 전 조회 441
13년 전 조회 613
13년 전 조회 430
🐛 버그신고