COMING SOON 🚀

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,502
13년 전 조회 1,591
13년 전 조회 1,832
13년 전 조회 1,750
13년 전 조회 1,519
13년 전 조회 2,334
13년 전 조회 1,696
13년 전 조회 6,910
13년 전 조회 2,070
13년 전 조회 1,699
13년 전 조회 2,734
13년 전 조회 1,525
13년 전 조회 2,470
13년 전 조회 3,950
13년 전 조회 1,505
13년 전 조회 1,517
13년 전 조회 1,635
13년 전 조회 1,518
13년 전 조회 1,434
13년 전 조회 1,698
13년 전 조회 1,435
13년 전 조회 1,974
13년 전 조회 1,972
13년 전 조회 1,715
13년 전 조회 1,460
13년 전 조회 1,641
13년 전 조회 2,397
13년 전 조회 1,413
13년 전 조회 3,397
13년 전 조회 3,112
13년 전 조회 2,977
13년 전 조회 2,282
13년 전 조회 1,604
13년 전 조회 4,776
13년 전 조회 2,600
13년 전 조회 3,071
13년 전 조회 1,470
13년 전 조회 1,415
13년 전 조회 2,572
13년 전 조회 1,564
13년 전 조회 2,792
13년 전 조회 2,451
13년 전 조회 2,270
13년 전 조회 2,114
13년 전 조회 5,552
13년 전 조회 3,952
13년 전 조회 2,317
13년 전 조회 1,400
13년 전 조회 2,051
13년 전 조회 2,528
13년 전 조회 2,272
13년 전 조회 2,077
13년 전 조회 1,782
13년 전 조회 1,420
13년 전 조회 1,832
13년 전 조회 1,675
13년 전 조회 1,511
13년 전 조회 1,499
13년 전 조회 1,936
13년 전 조회 1,402
13년 전 조회 1,353
13년 전 조회 1,434
13년 전 조회 1,360
13년 전 조회 1,966
13년 전 조회 1,674
13년 전 조회 3,186
13년 전 조회 1,415
13년 전 조회 1,705
13년 전 조회 2,464
13년 전 조회 1,612
13년 전 조회 1,574
13년 전 조회 1,510
13년 전 조회 1,639
13년 전 조회 2,036
13년 전 조회 1,608
13년 전 조회 1,635
13년 전 조회 1,973
13년 전 조회 1,755
13년 전 조회 2,384
13년 전 조회 1,824
13년 전 조회 1,378
13년 전 조회 1,995
13년 전 조회 5,311
13년 전 조회 1,654
13년 전 조회 2,173
13년 전 조회 3,780
13년 전 조회 2,389
13년 전 조회 2,729
13년 전 조회 2,353
13년 전 조회 3,015
13년 전 조회 2,448
13년 전 조회 2,028
13년 전 조회 1,481
13년 전 조회 1.4만
13년 전 조회 2,280
13년 전 조회 4,391
13년 전 조회 2,029
13년 전 조회 1,478
13년 전 조회 1,660
13년 전 조회 1,485