따라다니는게 아니라 항상 제일 하단에 스티커처럼 고정되어 있는것처럼 할려면 어떻게 해야하나요?
참고로 경향신문 모바일입니다.
<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8230 | 9년 전 | 170 | ||
| 8229 | 9년 전 | 146 | ||
| 8228 |
커네드커네드
|
9년 전 | 191 | |
| 8227 | 9년 전 | 232 | ||
| 8226 | 9년 전 | 245 | ||
| 8225 | 9년 전 | 227 | ||
| 8224 | 9년 전 | 235 | ||
| 8223 | 9년 전 | 214 | ||
| 8222 |
|
9년 전 | 277 | |
| 8221 | 9년 전 | 173 | ||
| 8220 | 9년 전 | 211 | ||
| 8219 | 9년 전 | 188 | ||
| 8218 | 9년 전 | 234 | ||
| 8217 |
star3840
|
9년 전 | 201 | |
| 8216 | 9년 전 | 266 | ||
| 8215 | 9년 전 | 212 | ||
| 8214 | 9년 전 | 326 | ||
| 8213 | 9년 전 | 281 | ||
| 8212 | 9년 전 | 186 | ||
| 8211 | 9년 전 | 362 | ||
| 8210 | 9년 전 | 361 | ||
| 8209 | 9년 전 | 437 | ||
| 8208 | 9년 전 | 326 | ||
| 8207 | 9년 전 | 332 | ||
| 8206 |
|
9년 전 | 281 | |
| 8205 | 9년 전 | 254 | ||
| 8204 | 9년 전 | 242 | ||
| 8203 | 9년 전 | 320 | ||
| 8202 | 9년 전 | 236 | ||
| 8201 | 9년 전 | 266 | ||
| 8200 | 9년 전 | 280 | ||
| 8199 | 9년 전 | 304 | ||
| 8198 | 9년 전 | 266 | ||
| 8197 | 9년 전 | 252 | ||
| 8196 | 9년 전 | 673 | ||
| 8195 | 9년 전 | 265 | ||
| 8194 | 9년 전 | 373 | ||
| 8193 | 9년 전 | 279 | ||
| 8192 | 9년 전 | 296 | ||
| 8191 | 9년 전 | 252 | ||
| 8190 | 9년 전 | 233 | ||
| 8189 | 9년 전 | 296 | ||
| 8188 | 9년 전 | 228 | ||
| 8187 | 9년 전 | 239 | ||
| 8186 | 9년 전 | 237 | ||
| 8185 | 9년 전 | 411 | ||
| 8184 | 9년 전 | 195 | ||
| 8183 | 9년 전 | 401 | ||
| 8182 | 9년 전 | 273 | ||
| 8181 | 9년 전 | 229 | ||
| 8180 | 9년 전 | 799 | ||
| 8179 | 9년 전 | 572 | ||
| 8178 | 9년 전 | 439 | ||
| 8177 |
kiplayer
|
9년 전 | 434 | |
| 8176 | 9년 전 | 462 | ||
| 8175 | 9년 전 | 353 | ||
| 8174 | 9년 전 | 346 | ||
| 8173 | 9년 전 | 434 | ||
| 8172 | 9년 전 | 311 | ||
| 8171 | 9년 전 | 275 | ||
| 8170 | 9년 전 | 393 | ||
| 8169 |
커네드커네드
|
9년 전 | 349 | |
| 8168 | 9년 전 | 428 | ||
| 8167 | 9년 전 | 417 | ||
| 8166 | 9년 전 | 316 | ||
| 8165 | 9년 전 | 262 | ||
| 8164 | 9년 전 | 396 | ||
| 8163 | 9년 전 | 402 | ||
| 8162 | 9년 전 | 387 | ||
| 8161 | 9년 전 | 401 | ||
| 8160 |
|
9년 전 | 620 | |
| 8159 | 9년 전 | 564 | ||
| 8158 | 9년 전 | 361 | ||
| 8157 | 9년 전 | 472 | ||
| 8156 | 9년 전 | 349 | ||
| 8155 | 9년 전 | 354 | ||
| 8154 |
00년생용띠
|
9년 전 | 690 | |
| 8153 | 9년 전 | 322 | ||
| 8152 |
|
9년 전 | 506 | |
| 8151 | 9년 전 | 502 | ||
| 8150 | 9년 전 | 615 | ||
| 8149 |
Jangfolk
|
9년 전 | 472 | |
| 8148 | 9년 전 | 285 | ||
| 8147 | 9년 전 | 468 | ||
| 8146 | 9년 전 | 553 | ||
| 8145 | 9년 전 | 509 | ||
| 8144 | 9년 전 | 476 | ||
| 8143 | 9년 전 | 308 | ||
| 8142 | 9년 전 | 518 | ||
| 8141 | 9년 전 | 462 | ||
| 8140 | 9년 전 | 1026 | ||
| 8139 | 9년 전 | 379 | ||
| 8138 |
전갈자리남자
|
9년 전 | 481 | |
| 8137 | 9년 전 | 517 | ||
| 8136 | 9년 전 | 847 | ||
| 8135 |
|
9년 전 | 889 | |
| 8134 |
PlayPixel
|
9년 전 | 628 | |
| 8133 |
|
9년 전 | 535 | |
| 8132 | 9년 전 | 574 | ||
| 8131 | 9년 전 | 933 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기