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,576
13년 전 조회 1,691
13년 전 조회 1,920
13년 전 조회 1,832
13년 전 조회 1,599
13년 전 조회 2,418
13년 전 조회 1,794
13년 전 조회 6,983
13년 전 조회 2,155
13년 전 조회 1,768
13년 전 조회 2,815
13년 전 조회 1,605
13년 전 조회 2,549
13년 전 조회 4,029
13년 전 조회 1,601
13년 전 조회 1,591
13년 전 조회 1,722
13년 전 조회 1,611
13년 전 조회 1,505
13년 전 조회 1,769
13년 전 조회 1,517
13년 전 조회 2,037
13년 전 조회 2,058
13년 전 조회 1,777
13년 전 조회 1,528
13년 전 조회 1,729
13년 전 조회 2,459
13년 전 조회 1,484
13년 전 조회 3,463
13년 전 조회 3,199
13년 전 조회 3,056
13년 전 조회 2,381
13년 전 조회 1,672
13년 전 조회 4,849
13년 전 조회 2,666
13년 전 조회 3,144
13년 전 조회 1,541
13년 전 조회 1,499
13년 전 조회 2,645
13년 전 조회 1,648
13년 전 조회 2,859
13년 전 조회 2,524
13년 전 조회 2,330
13년 전 조회 2,178
13년 전 조회 5,623
13년 전 조회 4,023
13년 전 조회 2,403
13년 전 조회 1,481
13년 전 조회 2,130
13년 전 조회 2,609
13년 전 조회 2,339
13년 전 조회 2,159
13년 전 조회 1,860
13년 전 조회 1,497
13년 전 조회 1,905
13년 전 조회 1,763
13년 전 조회 1,601
13년 전 조회 1,576
13년 전 조회 2,021
13년 전 조회 1,486
13년 전 조회 1,434
13년 전 조회 1,494
13년 전 조회 1,439
13년 전 조회 2,046
13년 전 조회 1,746
13년 전 조회 3,272
13년 전 조회 1,500
13년 전 조회 1,794
13년 전 조회 2,554
13년 전 조회 1,688
13년 전 조회 1,647
13년 전 조회 1,586
13년 전 조회 1,710
13년 전 조회 2,112
13년 전 조회 1,677
13년 전 조회 1,713
13년 전 조회 2,061
13년 전 조회 1,844
13년 전 조회 2,460
13년 전 조회 1,902
13년 전 조회 1,465
13년 전 조회 2,081
13년 전 조회 5,402
13년 전 조회 1,745
13년 전 조회 2,259
13년 전 조회 3,874
13년 전 조회 2,453
13년 전 조회 2,816
13년 전 조회 2,436
13년 전 조회 3,101
13년 전 조회 2,519
13년 전 조회 2,109
13년 전 조회 1,576
13년 전 조회 1.4만
13년 전 조회 2,358
13년 전 조회 4,479
13년 전 조회 2,130
13년 전 조회 1,570
13년 전 조회 1,743
13년 전 조회 1,585