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,600
13년 전 조회 1,712
13년 전 조회 1,945
13년 전 조회 1,850
13년 전 조회 1,620
13년 전 조회 2,440
13년 전 조회 1,815
13년 전 조회 7,009
13년 전 조회 2,171
13년 전 조회 1,782
13년 전 조회 2,835
13년 전 조회 1,624
13년 전 조회 2,564
13년 전 조회 4,037
13년 전 조회 1,619
13년 전 조회 1,608
13년 전 조회 1,742
13년 전 조회 1,627
13년 전 조회 1,525
13년 전 조회 1,786
13년 전 조회 1,537
13년 전 조회 2,057
13년 전 조회 2,075
13년 전 조회 1,796
13년 전 조회 1,540
13년 전 조회 1,749
13년 전 조회 2,479
13년 전 조회 1,504
13년 전 조회 3,486
13년 전 조회 3,214
13년 전 조회 3,069
13년 전 조회 2,400
13년 전 조회 1,691
13년 전 조회 4,863
13년 전 조회 2,682
13년 전 조회 3,160
13년 전 조회 1,557
13년 전 조회 1,508
13년 전 조회 2,666
13년 전 조회 1,663
13년 전 조회 2,872
13년 전 조회 2,546
13년 전 조회 2,350
13년 전 조회 2,191
13년 전 조회 5,637
13년 전 조회 4,037
13년 전 조회 2,415
13년 전 조회 1,500
13년 전 조회 2,146
13년 전 조회 2,621
13년 전 조회 2,363
13년 전 조회 2,171
13년 전 조회 1,881
13년 전 조회 1,512
13년 전 조회 1,918
13년 전 조회 1,780
13년 전 조회 1,620
13년 전 조회 1,589
13년 전 조회 2,042
13년 전 조회 1,507
13년 전 조회 1,444
13년 전 조회 1,514
13년 전 조회 1,450
13년 전 조회 2,065
13년 전 조회 1,762
13년 전 조회 3,291
13년 전 조회 1,523
13년 전 조회 1,808
13년 전 조회 2,576
13년 전 조회 1,702
13년 전 조회 1,659
13년 전 조회 1,608
13년 전 조회 1,728
13년 전 조회 2,131
13년 전 조회 1,695
13년 전 조회 1,731
13년 전 조회 2,082
13년 전 조회 1,867
13년 전 조회 2,469
13년 전 조회 1,921
13년 전 조회 1,484
13년 전 조회 2,094
13년 전 조회 5,418
13년 전 조회 1,766
13년 전 조회 2,279
13년 전 조회 3,902
13년 전 조회 2,468
13년 전 조회 2,838
13년 전 조회 2,455
13년 전 조회 3,117
13년 전 조회 2,541
13년 전 조회 2,130
13년 전 조회 1,596
13년 전 조회 1.4만
13년 전 조회 2,373
13년 전 조회 4,503
13년 전 조회 2,152
13년 전 조회 1,593
13년 전 조회 1,758
13년 전 조회 1,605