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,686
13년 전 조회 1,794
13년 전 조회 2,040
13년 전 조회 1,929
13년 전 조회 1,716
13년 전 조회 2,527
13년 전 조회 1,900
13년 전 조회 7,106
13년 전 조회 2,264
13년 전 조회 1,875
13년 전 조회 2,928
13년 전 조회 1,705
13년 전 조회 2,644
13년 전 조회 4,126
13년 전 조회 1,698
13년 전 조회 1,704
13년 전 조회 1,819
13년 전 조회 1,719
13년 전 조회 1,607
13년 전 조회 1,864
13년 전 조회 1,616
13년 전 조회 2,128
13년 전 조회 2,147
13년 전 조회 1,875
13년 전 조회 1,620
13년 전 조회 1,818
13년 전 조회 2,548
13년 전 조회 1,580
13년 전 조회 3,570
13년 전 조회 3,289
13년 전 조회 3,162
13년 전 조회 2,478
13년 전 조회 1,770
13년 전 조회 4,931
13년 전 조회 2,762
13년 전 조회 3,227
13년 전 조회 1,632
13년 전 조회 1,573
13년 전 조회 2,738
13년 전 조회 1,739
13년 전 조회 2,929
13년 전 조회 2,617
13년 전 조회 2,426
13년 전 조회 2,279
13년 전 조회 5,724
13년 전 조회 4,109
13년 전 조회 2,497
13년 전 조회 1,574
13년 전 조회 2,234
13년 전 조회 2,690
13년 전 조회 2,437
13년 전 조회 2,231
13년 전 조회 1,953
13년 전 조회 1,579
13년 전 조회 2,017
13년 전 조회 1,851
13년 전 조회 1,678
13년 전 조회 1,656
13년 전 조회 2,114
13년 전 조회 1,572
13년 전 조회 1,518
13년 전 조회 1,586
13년 전 조회 1,520
13년 전 조회 2,142
13년 전 조회 1,838
13년 전 조회 3,363
13년 전 조회 1,585
13년 전 조회 1,885
13년 전 조회 2,638
13년 전 조회 1,794
13년 전 조회 1,737
13년 전 조회 1,693
13년 전 조회 1,802
13년 전 조회 2,208
13년 전 조회 1,777
13년 전 조회 1,823
13년 전 조회 2,160
13년 전 조회 1,954
13년 전 조회 2,560
13년 전 조회 2,012
13년 전 조회 1,570
13년 전 조회 2,179
13년 전 조회 5,503
13년 전 조회 1,851
13년 전 조회 2,370
13년 전 조회 3,982
13년 전 조회 2,576
13년 전 조회 2,928
13년 전 조회 2,549
13년 전 조회 3,202
13년 전 조회 2,633
13년 전 조회 2,218
13년 전 조회 1,681
13년 전 조회 1.5만
13년 전 조회 2,471
13년 전 조회 4,594
13년 전 조회 2,245
13년 전 조회 1,686
13년 전 조회 1,848
13년 전 조회 1,685