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,244
13년 전 조회 1,316
13년 전 조회 1,562
13년 전 조회 1,461
13년 전 조회 1,271
13년 전 조회 2,095
13년 전 조회 1,458
13년 전 조회 6,638
13년 전 조회 1,811
13년 전 조회 1,420
13년 전 조회 2,462
13년 전 조회 1,266
13년 전 조회 2,212
13년 전 조회 3,721
13년 전 조회 1,258
13년 전 조회 1,280
13년 전 조회 1,389
13년 전 조회 1,267
13년 전 조회 1,183
13년 전 조회 1,460
13년 전 조회 1,194
13년 전 조회 1,738
13년 전 조회 1,700
13년 전 조회 1,462
13년 전 조회 1,228
13년 전 조회 1,415
13년 전 조회 2,165
13년 전 조회 1,170
13년 전 조회 3,176
13년 전 조회 2,880
13년 전 조회 2,762
13년 전 조회 2,080
13년 전 조회 1,391
13년 전 조회 4,529
13년 전 조회 2,364
13년 전 조회 2,827
13년 전 조회 1,200
13년 전 조회 1,133
13년 전 조회 2,308
13년 전 조회 1,296
13년 전 조회 2,537
13년 전 조회 2,189
13년 전 조회 2,012
13년 전 조회 1,873
13년 전 조회 5,305
13년 전 조회 3,696
13년 전 조회 2,056
13년 전 조회 1,131
13년 전 조회 1,795
13년 전 조회 2,282
13년 전 조회 1,995
13년 전 조회 1,798
13년 전 조회 1,479
13년 전 조회 1,114
13년 전 조회 1,560
13년 전 조회 1,391
13년 전 조회 1,200
13년 전 조회 1,190
13년 전 조회 1,665
13년 전 조회 1,115
13년 전 조회 1,061
13년 전 조회 1,152
13년 전 조회 1,078
13년 전 조회 1,705
13년 전 조회 1,411
13년 전 조회 2,915
13년 전 조회 1,146
13년 전 조회 1,427
13년 전 조회 2,206
13년 전 조회 1,357
13년 전 조회 1,291
13년 전 조회 1,238
13년 전 조회 1,371
13년 전 조회 1,756
13년 전 조회 1,321
13년 전 조회 1,368
13년 전 조회 1,668
13년 전 조회 1,485
13년 전 조회 2,116
13년 전 조회 1,574
13년 전 조회 1,094
13년 전 조회 1,684
13년 전 조회 5,017
13년 전 조회 1,324
13년 전 조회 1,849
13년 전 조회 3,459
13년 전 조회 2,069
13년 전 조회 2,422
13년 전 조회 2,050
13년 전 조회 2,717
13년 전 조회 2,127
13년 전 조회 1,718
13년 전 조회 1,192
13년 전 조회 1.4만
13년 전 조회 1,973
13년 전 조회 4,096
13년 전 조회 1,730
13년 전 조회 1,176
13년 전 조회 1,339
13년 전 조회 1,182