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년 전 조회 493
13년 전 조회 556
13년 전 조회 794
13년 전 조회 718
13년 전 조회 510
13년 전 조회 1,345
13년 전 조회 694
13년 전 조회 5,876
13년 전 조회 1,036
13년 전 조회 672
13년 전 조회 1,705
13년 전 조회 514
13년 전 조회 1,437
13년 전 조회 2,910
13년 전 조회 519
13년 전 조회 556
13년 전 조회 642
13년 전 조회 550
13년 전 조회 451
13년 전 조회 711
13년 전 조회 455
13년 전 조회 996
13년 전 조회 966
13년 전 조회 737
13년 전 조회 493
13년 전 조회 652
13년 전 조회 1,427
13년 전 조회 480
13년 전 조회 2,461
13년 전 조회 2,172
13년 전 조회 2,053
13년 전 조회 1,367
13년 전 조회 677
13년 전 조회 3,813
13년 전 조회 1,679
13년 전 조회 2,097
13년 전 조회 507
13년 전 조회 474
13년 전 조회 1,608
13년 전 조회 595
13년 전 조회 1,820
13년 전 조회 1,503
13년 전 조회 1,294
13년 전 조회 1,223
13년 전 조회 4,619
13년 전 조회 3,053
13년 전 조회 1,412
13년 전 조회 501
13년 전 조회 1,151
13년 전 조회 1,620
13년 전 조회 1,358
13년 전 조회 1,144
13년 전 조회 801
13년 전 조회 468
13년 전 조회 860
13년 전 조회 730
13년 전 조회 550
13년 전 조회 556
13년 전 조회 1,007
13년 전 조회 458
13년 전 조회 410
13년 전 조회 497
13년 전 조회 413
13년 전 조회 1,041
13년 전 조회 735
13년 전 조회 2,252
13년 전 조회 499
13년 전 조회 776
13년 전 조회 1,515
13년 전 조회 698
13년 전 조회 632
13년 전 조회 591
13년 전 조회 706
13년 전 조회 1,104
13년 전 조회 667
13년 전 조회 694
13년 전 조회 1,006
13년 전 조회 818
13년 전 조회 1,428
13년 전 조회 912
13년 전 조회 427
13년 전 조회 974
13년 전 조회 4,284
13년 전 조회 580
13년 전 조회 1,073
13년 전 조회 2,716
13년 전 조회 1,292
13년 전 조회 1,666
13년 전 조회 1,301
13년 전 조회 1,959
13년 전 조회 1,367
13년 전 조회 946
13년 전 조회 427
13년 전 조회 1.3만
13년 전 조회 1,205
13년 전 조회 3,345
13년 전 조회 976
13년 전 조회 436
13년 전 조회 608
13년 전 조회 424
🐛 버그신고