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,369
13년 전 조회 1,443
13년 전 조회 1,691
13년 전 조회 1,599
13년 전 조회 1,382
13년 전 조회 2,216
13년 전 조회 1,566
13년 전 조회 6,777
13년 전 조회 1,939
13년 전 조회 1,545
13년 전 조회 2,585
13년 전 조회 1,375
13년 전 조회 2,332
13년 전 조회 3,837
13년 전 조회 1,385
13년 전 조회 1,387
13년 전 조회 1,513
13년 전 조회 1,385
13년 전 조회 1,299
13년 전 조회 1,573
13년 전 조회 1,302
13년 전 조회 1,851
13년 전 조회 1,845
13년 전 조회 1,588
13년 전 조회 1,337
13년 전 조회 1,517
13년 전 조회 2,267
13년 전 조회 1,267
13년 전 조회 3,280
13년 전 조회 2,975
13년 전 조회 2,873
13년 전 조회 2,167
13년 전 조회 1,494
13년 전 조회 4,651
13년 전 조회 2,485
13년 전 조회 2,965
13년 전 조회 1,337
13년 전 조회 1,266
13년 전 조회 2,452
13년 전 조회 1,437
13년 전 조회 2,664
13년 전 조회 2,319
13년 전 조회 2,146
13년 전 조회 2,007
13년 전 조회 5,454
13년 전 조회 3,834
13년 전 조회 2,190
13년 전 조회 1,266
13년 전 조회 1,926
13년 전 조회 2,427
13년 전 조회 2,147
13년 전 조회 1,938
13년 전 조회 1,649
13년 전 조회 1,260
13년 전 조회 1,703
13년 전 조회 1,540
13년 전 조회 1,374
13년 전 조회 1,344
13년 전 조회 1,807
13년 전 조회 1,250
13년 전 조회 1,210
13년 전 조회 1,291
13년 전 조회 1,233
13년 전 조회 1,834
13년 전 조회 1,549
13년 전 조회 3,059
13년 전 조회 1,295
13년 전 조회 1,570
13년 전 조회 2,351
13년 전 조회 1,498
13년 전 조회 1,425
13년 전 조회 1,393
13년 전 조회 1,508
13년 전 조회 1,903
13년 전 조회 1,482
13년 전 조회 1,510
13년 전 조회 1,821
13년 전 조회 1,631
13년 전 조회 2,252
13년 전 조회 1,704
13년 전 조회 1,245
13년 전 조회 1,859
13년 전 조회 5,182
13년 전 조회 1,511
13년 전 조회 2,031
13년 전 조회 3,639
13년 전 조회 2,248
13년 전 조회 2,590
13년 전 조회 2,218
13년 전 조회 2,879
13년 전 조회 2,295
13년 전 조회 1,890
13년 전 조회 1,348
13년 전 조회 1.4만
13년 전 조회 2,125
13년 전 조회 4,250
13년 전 조회 1,883
13년 전 조회 1,331
13년 전 조회 1,497
13년 전 조회 1,346