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년 전 조회 1,543
13년 전 조회 1,655
13년 전 조회 1,876
13년 전 조회 1,794
13년 전 조회 1,560
13년 전 조회 2,378
13년 전 조회 1,739
13년 전 조회 6,948
13년 전 조회 2,112
13년 전 조회 1,745
13년 전 조회 2,778
13년 전 조회 1,572
13년 전 조회 2,518
13년 전 조회 4,003
13년 전 조회 1,555
13년 전 조회 1,564
13년 전 조회 1,683
13년 전 조회 1,567
13년 전 조회 1,467
13년 전 조회 1,733
13년 전 조회 1,483
13년 전 조회 2,014
13년 전 조회 2,020
13년 전 조회 1,751
13년 전 조회 1,500
13년 전 조회 1,691
13년 전 조회 2,431
13년 전 조회 1,451
13년 전 조회 3,437
13년 전 조회 3,162
13년 전 조회 3,021
13년 전 조회 2,327
13년 전 조회 1,642
13년 전 조회 4,814
13년 전 조회 2,639
13년 전 조회 3,113
13년 전 조회 1,504
13년 전 조회 1,456
13년 전 조회 2,608
13년 전 조회 1,600
13년 전 조회 2,823
13년 전 조회 2,488
13년 전 조회 2,293
13년 전 조회 2,149
13년 전 조회 5,583
13년 전 조회 3,987
13년 전 조회 2,361
13년 전 조회 1,444
13년 전 조회 2,098
13년 전 조회 2,564
13년 전 조회 2,309
13년 전 조회 2,116
13년 전 조회 1,821
13년 전 조회 1,465
13년 전 조회 1,868
13년 전 조회 1,729
13년 전 조회 1,556
13년 전 조회 1,539
13년 전 조회 1,995
13년 전 조회 1,449
13년 전 조회 1,401
13년 전 조회 1,470
13년 전 조회 1,395
13년 전 조회 2,002
13년 전 조회 1,716
13년 전 조회 3,236
13년 전 조회 1,458
13년 전 조회 1,749
13년 전 조회 2,508
13년 전 조회 1,655
13년 전 조회 1,606
13년 전 조회 1,547
13년 전 조회 1,679
13년 전 조회 2,083
13년 전 조회 1,636
13년 전 조회 1,686
13년 전 조회 2,024
13년 전 조회 1,800
13년 전 조회 2,423
13년 전 조회 1,864
13년 전 조회 1,418
13년 전 조회 2,046
13년 전 조회 5,357
13년 전 조회 1,702
13년 전 조회 2,226
13년 전 조회 3,829
13년 전 조회 2,427
13년 전 조회 2,782
13년 전 조회 2,401
13년 전 조회 3,070
13년 전 조회 2,497
13년 전 조회 2,080
13년 전 조회 1,529
13년 전 조회 1.4만
13년 전 조회 2,324
13년 전 조회 4,439
13년 전 조회 2,084
13년 전 조회 1,531
13년 전 조회 1,703
13년 전 조회 1,542