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년 전 조회 481
13년 전 조회 548
13년 전 조회 784
13년 전 조회 708
13년 전 조회 500
13년 전 조회 1,339
13년 전 조회 684
13년 전 조회 5,866
13년 전 조회 1,029
13년 전 조회 661
13년 전 조회 1,699
13년 전 조회 507
13년 전 조회 1,424
13년 전 조회 2,901
13년 전 조회 509
13년 전 조회 546
13년 전 조회 635
13년 전 조회 539
13년 전 조회 441
13년 전 조회 703
13년 전 조회 446
13년 전 조회 986
13년 전 조회 958
13년 전 조회 725
13년 전 조회 483
13년 전 조회 643
13년 전 조회 1,419
13년 전 조회 474
13년 전 조회 2,451
13년 전 조회 2,164
13년 전 조회 2,043
13년 전 조회 1,357
13년 전 조회 667
13년 전 조회 3,805
13년 전 조회 1,671
13년 전 조회 2,088
13년 전 조회 500
13년 전 조회 468
13년 전 조회 1,602
13년 전 조회 588
13년 전 조회 1,811
13년 전 조회 1,493
13년 전 조회 1,286
13년 전 조회 1,211
13년 전 조회 4,609
13년 전 조회 3,045
13년 전 조회 1,406
13년 전 조회 490
13년 전 조회 1,140
13년 전 조회 1,613
13년 전 조회 1,348
13년 전 조회 1,132
13년 전 조회 796
13년 전 조회 460
13년 전 조회 852
13년 전 조회 719
13년 전 조회 542
13년 전 조회 547
13년 전 조회 1,001
13년 전 조회 447
13년 전 조회 402
13년 전 조회 489
13년 전 조회 407
13년 전 조회 1,031
13년 전 조회 725
13년 전 조회 2,238
13년 전 조회 489
13년 전 조회 769
13년 전 조회 1,507
13년 전 조회 687
13년 전 조회 624
13년 전 조회 585
13년 전 조회 694
13년 전 조회 1,095
13년 전 조회 659
13년 전 조회 685
13년 전 조회 996
13년 전 조회 808
13년 전 조회 1,418
13년 전 조회 905
13년 전 조회 417
13년 전 조회 968
13년 전 조회 4,274
13년 전 조회 570
13년 전 조회 1,063
13년 전 조회 2,705
13년 전 조회 1,283
13년 전 조회 1,656
13년 전 조회 1,289
13년 전 조회 1,951
13년 전 조회 1,358
13년 전 조회 937
13년 전 조회 419
13년 전 조회 1.3만
13년 전 조회 1,197
13년 전 조회 3,336
13년 전 조회 969
13년 전 조회 428
13년 전 조회 600
13년 전 조회 417
🐛 버그신고