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,589
13년 전 조회 1,706
13년 전 조회 1,935
13년 전 조회 1,842
13년 전 조회 1,610
13년 전 조회 2,432
13년 전 조회 1,807
13년 전 조회 7,006
13년 전 조회 2,166
13년 전 조회 1,774
13년 전 조회 2,825
13년 전 조회 1,614
13년 전 조회 2,558
13년 전 조회 4,035
13년 전 조회 1,609
13년 전 조회 1,597
13년 전 조회 1,736
13년 전 조회 1,621
13년 전 조회 1,513
13년 전 조회 1,782
13년 전 조회 1,530
13년 전 조회 2,050
13년 전 조회 2,067
13년 전 조회 1,790
13년 전 조회 1,534
13년 전 조회 1,741
13년 전 조회 2,473
13년 전 조회 1,495
13년 전 조회 3,477
13년 전 조회 3,207
13년 전 조회 3,065
13년 전 조회 2,390
13년 전 조회 1,680
13년 전 조회 4,860
13년 전 조회 2,677
13년 전 조회 3,158
13년 전 조회 1,551
13년 전 조회 1,506
13년 전 조회 2,657
13년 전 조회 1,656
13년 전 조회 2,869
13년 전 조회 2,539
13년 전 조회 2,341
13년 전 조회 2,186
13년 전 조회 5,630
13년 전 조회 4,031
13년 전 조회 2,413
13년 전 조회 1,491
13년 전 조회 2,138
13년 전 조회 2,614
13년 전 조회 2,350
13년 전 조회 2,166
13년 전 조회 1,877
13년 전 조회 1,505
13년 전 조회 1,912
13년 전 조회 1,776
13년 전 조회 1,611
13년 전 조회 1,582
13년 전 조회 2,032
13년 전 조회 1,497
13년 전 조회 1,438
13년 전 조회 1,505
13년 전 조회 1,446
13년 전 조회 2,057
13년 전 조회 1,756
13년 전 조회 3,280
13년 전 조회 1,511
13년 전 조회 1,803
13년 전 조회 2,564
13년 전 조회 1,697
13년 전 조회 1,655
13년 전 조회 1,602
13년 전 조회 1,720
13년 전 조회 2,123
13년 전 조회 1,685
13년 전 조회 1,724
13년 전 조회 2,072
13년 전 조회 1,856
13년 전 조회 2,466
13년 전 조회 1,910
13년 전 조회 1,476
13년 전 조회 2,088
13년 전 조회 5,411
13년 전 조회 1,754
13년 전 조회 2,270
13년 전 조회 3,889
13년 전 조회 2,464
13년 전 조회 2,825
13년 전 조회 2,445
13년 전 조회 3,112
13년 전 조회 2,530
13년 전 조회 2,123
13년 전 조회 1,592
13년 전 조회 1.4만
13년 전 조회 2,368
13년 전 조회 4,495
13년 전 조회 2,146
13년 전 조회 1,581
13년 전 조회 1,753
13년 전 조회 1,599