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년 전 조회 484
13년 전 조회 549
13년 전 조회 787
13년 전 조회 710
13년 전 조회 501
13년 전 조회 1,340
13년 전 조회 686
13년 전 조회 5,867
13년 전 조회 1,029
13년 전 조회 662
13년 전 조회 1,700
13년 전 조회 508
13년 전 조회 1,426
13년 전 조회 2,903
13년 전 조회 511
13년 전 조회 547
13년 전 조회 636
13년 전 조회 540
13년 전 조회 443
13년 전 조회 705
13년 전 조회 447
13년 전 조회 987
13년 전 조회 958
13년 전 조회 730
13년 전 조회 484
13년 전 조회 644
13년 전 조회 1,419
13년 전 조회 474
13년 전 조회 2,452
13년 전 조회 2,165
13년 전 조회 2,046
13년 전 조회 1,358
13년 전 조회 669
13년 전 조회 3,805
13년 전 조회 1,672
13년 전 조회 2,089
13년 전 조회 500
13년 전 조회 468
13년 전 조회 1,602
13년 전 조회 589
13년 전 조회 1,812
13년 전 조회 1,494
13년 전 조회 1,286
13년 전 조회 1,214
13년 전 조회 4,610
13년 전 조회 3,046
13년 전 조회 1,407
13년 전 조회 491
13년 전 조회 1,141
13년 전 조회 1,614
13년 전 조회 1,349
13년 전 조회 1,135
13년 전 조회 796
13년 전 조회 461
13년 전 조회 852
13년 전 조회 722
13년 전 조회 543
13년 전 조회 548
13년 전 조회 1,001
13년 전 조회 448
13년 전 조회 402
13년 전 조회 489
13년 전 조회 407
13년 전 조회 1,032
13년 전 조회 726
13년 전 조회 2,240
13년 전 조회 490
13년 전 조회 769
13년 전 조회 1,507
13년 전 조회 688
13년 전 조회 625
13년 전 조회 585
13년 전 조회 696
13년 전 조회 1,096
13년 전 조회 659
13년 전 조회 687
13년 전 조회 998
13년 전 조회 809
13년 전 조회 1,418
13년 전 조회 906
13년 전 조회 418
13년 전 조회 969
13년 전 조회 4,275
13년 전 조회 573
13년 전 조회 1,064
13년 전 조회 2,708
13년 전 조회 1,286
13년 전 조회 1,658
13년 전 조회 1,290
13년 전 조회 1,952
13년 전 조회 1,360
13년 전 조회 937
13년 전 조회 420
13년 전 조회 1.3만
13년 전 조회 1,198
13년 전 조회 3,337
13년 전 조회 971
13년 전 조회 430
13년 전 조회 602
13년 전 조회 418
🐛 버그신고