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년 전 조회 788
13년 전 조회 710
13년 전 조회 501
13년 전 조회 1,340
13년 전 조회 686
13년 전 조회 5,868
13년 전 조회 1,029
13년 전 조회 662
13년 전 조회 1,700
13년 전 조회 509
13년 전 조회 1,428
13년 전 조회 2,903
13년 전 조회 511
13년 전 조회 547
13년 전 조회 636
13년 전 조회 541
13년 전 조회 444
13년 전 조회 705
13년 전 조회 447
13년 전 조회 989
13년 전 조회 959
13년 전 조회 730
13년 전 조회 485
13년 전 조회 644
13년 전 조회 1,419
13년 전 조회 474
13년 전 조회 2,453
13년 전 조회 2,165
13년 전 조회 2,047
13년 전 조회 1,360
13년 전 조회 669
13년 전 조회 3,805
13년 전 조회 1,675
13년 전 조회 2,090
13년 전 조회 502
13년 전 조회 468
13년 전 조회 1,602
13년 전 조회 589
13년 전 조회 1,812
13년 전 조회 1,495
13년 전 조회 1,286
13년 전 조회 1,216
13년 전 조회 4,611
13년 전 조회 3,047
13년 전 조회 1,408
13년 전 조회 491
13년 전 조회 1,141
13년 전 조회 1,615
13년 전 조회 1,350
13년 전 조회 1,135
13년 전 조회 797
13년 전 조회 461
13년 전 조회 854
13년 전 조회 722
13년 전 조회 544
13년 전 조회 548
13년 전 조회 1,001
13년 전 조회 451
13년 전 조회 403
13년 전 조회 490
13년 전 조회 408
13년 전 조회 1,033
13년 전 조회 728
13년 전 조회 2,242
13년 전 조회 492
13년 전 조회 771
13년 전 조회 1,508
13년 전 조회 691
13년 전 조회 626
13년 전 조회 587
13년 전 조회 698
13년 전 조회 1,097
13년 전 조회 660
13년 전 조회 688
13년 전 조회 1,000
13년 전 조회 811
13년 전 조회 1,418
13년 전 조회 907
13년 전 조회 418
13년 전 조회 970
13년 전 조회 4,277
13년 전 조회 573
13년 전 조회 1,066
13년 전 조회 2,708
13년 전 조회 1,286
13년 전 조회 1,659
13년 전 조회 1,293
13년 전 조회 1,952
13년 전 조회 1,361
13년 전 조회 938
13년 전 조회 422
13년 전 조회 1.3만
13년 전 조회 1,198
13년 전 조회 3,339
13년 전 조회 972
13년 전 조회 432
13년 전 조회 602
13년 전 조회 419
🐛 버그신고