따라다니는게 아니라 항상 제일 하단에 스티커처럼 고정되어 있는것처럼 할려면 어떻게 해야하나요?
참고로 경향신문 모바일입니다.
<script type="text/javascript">
var adObj = document.createElement("DIV");
adObj.id="dualad_div34";
adObj.style.zindex="999";
adObj.style.position="absolute";
adObj.style.bottom="0px";
adObj.style.left="0px";
adObj.style.width="100%";
adObj.style.height="50px";
document.body.appendChild(adObj);
var adObj = document.createElement("DIV");
adObj.id="dualad_div34";
adObj.style.zindex="999";
adObj.style.position="absolute";
adObj.style.bottom="0px";
adObj.style.left="0px";
adObj.style.width="100%";
adObj.style.height="50px";
document.body.appendChild(adObj);
var daum_adam_vars = {
position : 'MIDDLE', // TOP (화면상단) | BOTTOM (화면 하단) | MIDDLE (화면 중간 삽입. bannerDivId 지정 필요)
bannerDivId : 'dualad_div34', // position : 'MIDDLE' 인 경우, 광고를 삽입할 DIV 테그의 ID 값.
};
position : 'MIDDLE', // TOP (화면상단) | BOTTOM (화면 하단) | MIDDLE (화면 중간 삽입. bannerDivId 지정 필요)
bannerDivId : 'dualad_div34', // position : 'MIDDLE' 인 경우, 광고를 삽입할 DIV 테그의 ID 값.
};
function setAdPosition(target, position, topLimit, btmLimit) {
if (!target) return false;
var obj = target;
obj.initTop = position;
obj.topLimit = topLimit;
obj.bottomLimit = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight) - btmLimit - obj.offsetHeight;
obj.style.position = "absolute";
obj.top = obj.initTop;
obj.left = obj.initLeft;
if (typeof (window.pageYOffset) == "number") {
obj.getTop = function () {
return window.pageYOffset;
}
} else if (typeof (document.documentElement.scrollTop) == "number") {
obj.getTop = function () {
return Math.max(document.documentElement.scrollTop, document.body.scrollTop);
}
} else {
obj.getTop = function () {
return 0;
}
}
if (self.innerHeight) {
obj.getHeight = function () {
return self.innerHeight;
}
} else if (document.documentElement.clientHeight) {
obj.getHeight = function () {
return document.documentElement.clientHeight;
}
} else {
obj.getHeight = function () {
return 500;
}
}
if (obj.initTop > 0) {
pos = obj.getTop() + obj.initTop;
} else {
pos = obj.getTop() + obj.getHeight() + obj.initTop;
}
if (pos > obj.bottomLimit) pos = obj.bottomLimit;
if (pos < obj.topLimit) pos = obj.topLimit;
obj.style.top = (obj.top + pos) + "px";
}
if (!target) return false;
var obj = target;
obj.initTop = position;
obj.topLimit = topLimit;
obj.bottomLimit = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight) - btmLimit - obj.offsetHeight;
obj.style.position = "absolute";
obj.top = obj.initTop;
obj.left = obj.initLeft;
if (typeof (window.pageYOffset) == "number") {
obj.getTop = function () {
return window.pageYOffset;
}
} else if (typeof (document.documentElement.scrollTop) == "number") {
obj.getTop = function () {
return Math.max(document.documentElement.scrollTop, document.body.scrollTop);
}
} else {
obj.getTop = function () {
return 0;
}
}
if (self.innerHeight) {
obj.getHeight = function () {
return self.innerHeight;
}
} else if (document.documentElement.clientHeight) {
obj.getHeight = function () {
return document.documentElement.clientHeight;
}
} else {
obj.getHeight = function () {
return 500;
}
}
if (obj.initTop > 0) {
pos = obj.getTop() + obj.initTop;
} else {
pos = obj.getTop() + obj.getHeight() + obj.initTop;
}
if (pos > obj.bottomLimit) pos = obj.bottomLimit;
if (pos < obj.topLimit) pos = obj.topLimit;
obj.style.top = (obj.top + pos) + "px";
}
document.body.addEventListener('touchstart', function (e) {
var evt = e || window.event;
var target = evt.target || evt.srcElement;
var node = target.parentNode;
var hide = true;
while (node) {
if (node.id === daum_adam_vars.bannerDivId) {
hide = false;
break;
}
node = node.parentNode;
}
if (hide) {
document.getElementById('dualad_div34').style.display = 'none';
}
}, false);
window.addEventListener('scroll', function () {
setAdPosition(document.getElementById("dualad_div34"), - 30, 0, - 30);
document.getElementById('dualad_div34').style.display = 'block';
}, false);
var evt = e || window.event;
var target = evt.target || evt.srcElement;
var node = target.parentNode;
var hide = true;
while (node) {
if (node.id === daum_adam_vars.bannerDivId) {
hide = false;
break;
}
node = node.parentNode;
}
if (hide) {
document.getElementById('dualad_div34').style.display = 'none';
}
}, false);
window.addEventListener('scroll', function () {
setAdPosition(document.getElementById("dualad_div34"), - 30, 0, - 30);
document.getElementById('dualad_div34').style.display = 'block';
}, false);
window.addEventListener('load', function() {
if (navigator.userAgent.indexOf('Safari')!=-1){
setTimeout(scrollTo,0,0,1);
}else{
window.scrollTo(0,1);
}
setTimeout("setAdPosition(document.getElementById('dualad_div34'), -24, 0, -24)",1);
}, false);
</script>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 130 | 20년 전 | 4012 | ||
| 129 | 20년 전 | 2949 | ||
| 128 | 20년 전 | 3689 | ||
| 127 | 20년 전 | 3532 | ||
| 126 | 20년 전 | 3780 | ||
| 125 | 20년 전 | 8596 | ||
| 124 | 20년 전 | 2606 | ||
| 123 | 20년 전 | 3756 | ||
| 122 | 20년 전 | 3214 | ||
| 121 | 20년 전 | 2615 | ||
| 120 | 20년 전 | 2677 | ||
| 119 | 20년 전 | 2589 | ||
| 118 | 20년 전 | 2866 | ||
| 117 |
|
20년 전 | 3066 | |
| 116 | 20년 전 | 5325 | ||
| 115 | 20년 전 | 3933 | ||
| 114 | 20년 전 | 4980 | ||
| 113 | 20년 전 | 6221 | ||
| 112 | 20년 전 | 7327 | ||
| 111 | 20년 전 | 18437 | ||
| 110 | 20년 전 | 6882 | ||
| 109 | 21년 전 | 2890 | ||
| 108 | 21년 전 | 4146 | ||
| 107 |
prosper
|
21년 전 | 2506 | |
| 106 |
prosper
|
21년 전 | 4326 | |
| 105 |
아우겐나이스
|
21년 전 | 2916 | |
| 104 | 21년 전 | 2269 | ||
| 103 | 21년 전 | 2483 | ||
| 102 | 21년 전 | 2269 | ||
| 101 | 21년 전 | 2584 | ||
| 100 | 21년 전 | 1761 | ||
| 99 | 21년 전 | 1575 | ||
| 98 | 21년 전 | 1621 | ||
| 97 | 21년 전 | 2135 | ||
| 96 | 21년 전 | 1889 | ||
| 95 | 21년 전 | 2385 | ||
| 94 | 21년 전 | 3568 | ||
| 93 | 21년 전 | 1570 | ||
| 92 | 21년 전 | 1766 | ||
| 91 | 21년 전 | 3189 | ||
| 90 | 21년 전 | 2347 | ||
| 89 | 21년 전 | 3183 | ||
| 88 | 21년 전 | 2874 | ||
| 87 | 21년 전 | 3300 | ||
| 86 | 21년 전 | 5145 | ||
| 85 | 21년 전 | 2530 | ||
| 84 | 21년 전 | 4833 | ||
| 83 | 21년 전 | 2511 | ||
| 82 | 21년 전 | 3128 | ||
| 81 | 21년 전 | 7641 | ||
| 80 | 21년 전 | 3838 | ||
| 79 | 21년 전 | 3216 | ||
| 78 | 21년 전 | 4702 | ||
| 77 | 21년 전 | 2909 | ||
| 76 | 21년 전 | 6226 | ||
| 75 | 21년 전 | 4475 | ||
| 74 | 21년 전 | 5789 | ||
| 73 | 21년 전 | 3633 | ||
| 72 | 21년 전 | 5976 | ||
| 71 | 21년 전 | 3123 | ||
| 70 | 21년 전 | 2850 | ||
| 69 | 21년 전 | 2647 | ||
| 68 | 21년 전 | 2453 | ||
| 67 | 21년 전 | 2660 | ||
| 66 | 21년 전 | 2682 | ||
| 65 | 21년 전 | 3794 | ||
| 64 | 21년 전 | 2834 | ||
| 63 | 21년 전 | 2464 | ||
| 62 | 21년 전 | 2274 | ||
| 61 | 21년 전 | 3087 | ||
| 60 | 21년 전 | 3139 | ||
| 59 | 21년 전 | 2526 | ||
| 58 | 21년 전 | 2598 | ||
| 57 | 21년 전 | 2975 | ||
| 56 | 21년 전 | 2338 | ||
| 55 | 21년 전 | 2765 | ||
| 54 | 21년 전 | 2135 | ||
| 53 | 21년 전 | 2361 | ||
| 52 | 21년 전 | 2706 | ||
| 51 |
prosper
|
21년 전 | 2356 | |
| 50 |
prosper
|
21년 전 | 2179 | |
| 49 | 21년 전 | 2187 | ||
| 48 | 21년 전 | 2345 | ||
| 47 | 21년 전 | 1944 | ||
| 46 | 21년 전 | 1934 | ||
| 45 | 21년 전 | 2138 | ||
| 44 | 21년 전 | 2370 | ||
| 43 | 21년 전 | 4586 | ||
| 42 |
prosper
|
21년 전 | 2718 | |
| 41 |
prosper
|
21년 전 | 2117 | |
| 40 | 21년 전 | 2185 | ||
| 39 | 21년 전 | 2155 | ||
| 38 | 21년 전 | 2426 | ||
| 37 | 21년 전 | 2575 | ||
| 36 | 21년 전 | 1782 | ||
| 35 | 21년 전 | 4087 | ||
| 34 | 21년 전 | 3857 | ||
| 33 | 21년 전 | 2996 | ||
| 32 |
prosper
|
21년 전 | 2908 | |
| 31 | 21년 전 | 5295 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기