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,762
13년 전 조회 1,882
13년 전 조회 2,133
13년 전 조회 2,010
13년 전 조회 1,805
13년 전 조회 2,622
13년 전 조회 1,982
13년 전 조회 7,191
13년 전 조회 2,340
13년 전 조회 1,966
13년 전 조회 3,051
13년 전 조회 1,779
13년 전 조회 2,729
13년 전 조회 4,218
13년 전 조회 1,800
13년 전 조회 1,777
13년 전 조회 1,907
13년 전 조회 1,792
13년 전 조회 1,702
13년 전 조회 1,942
13년 전 조회 1,706
13년 전 조회 2,210
13년 전 조회 2,260
13년 전 조회 1,962
13년 전 조회 1,718
13년 전 조회 1,906
13년 전 조회 2,641
13년 전 조회 1,673
13년 전 조회 3,667
13년 전 조회 3,375
13년 전 조회 3,255
13년 전 조회 2,581
13년 전 조회 1,866
13년 전 조회 5,038
13년 전 조회 2,859
13년 전 조회 3,318
13년 전 조회 1,713
13년 전 조회 1,659
13년 전 조회 2,812
13년 전 조회 1,826
13년 전 조회 3,025
13년 전 조회 2,709
13년 전 조회 2,504
13년 전 조회 2,368
13년 전 조회 5,831
13년 전 조회 4,206
13년 전 조회 2,587
13년 전 조회 1,652
13년 전 조회 2,318
13년 전 조회 2,779
13년 전 조회 2,533
13년 전 조회 2,323
13년 전 조회 2,044
13년 전 조회 1,659
13년 전 조회 2,093
13년 전 조회 1,937
13년 전 조회 1,782
13년 전 조회 1,743
13년 전 조회 2,206
13년 전 조회 1,682
13년 전 조회 1,619
13년 전 조회 1,682
13년 전 조회 1,602
13년 전 조회 2,233
13년 전 조회 1,932
13년 전 조회 3,457
13년 전 조회 1,695
13년 전 조회 1,991
13년 전 조회 2,743
13년 전 조회 1,873
13년 전 조회 1,823
13년 전 조회 1,787
13년 전 조회 1,898
13년 전 조회 2,300
13년 전 조회 1,860
13년 전 조회 1,903
13년 전 조회 2,258
13년 전 조회 2,037
13년 전 조회 2,651
13년 전 조회 2,102
13년 전 조회 1,645
13년 전 조회 2,253
13년 전 조회 5,583
13년 전 조회 1,932
13년 전 조회 2,457
13년 전 조회 4,071
13년 전 조회 2,669
13년 전 조회 3,012
13년 전 조회 2,635
13년 전 조회 3,291
13년 전 조회 2,718
13년 전 조회 2,299
13년 전 조회 1,763
13년 전 조회 1.5만
13년 전 조회 2,552
13년 전 조회 4,676
13년 전 조회 2,330
13년 전 조회 1,769
13년 전 조회 1,935
13년 전 조회 1,769