따라다니는게 아니라 항상 제일 하단에 스티커처럼 고정되어 있는것처럼 할려면 어떻게 해야하나요?
참고로 경향신문 모바일입니다.
<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5330 | 13년 전 | 755 | ||
| 5329 | 13년 전 | 694 | ||
| 5328 | 13년 전 | 634 | ||
| 5327 | 13년 전 | 878 | ||
| 5326 |
downmix
|
13년 전 | 1113 | |
| 5325 |
techer
|
13년 전 | 3139 | |
| 5324 |
techer
|
13년 전 | 963 | |
| 5323 | 13년 전 | 1173 | ||
| 5322 |
김준수사랑
|
13년 전 | 883 | |
| 5321 |
다케미카코
|
13년 전 | 745 | |
| 5320 |
|
13년 전 | 990 | |
| 5319 |
한번잘해보자
|
13년 전 | 995 | |
| 5318 |
|
13년 전 | 1259 | |
| 5317 |
techer
|
13년 전 | 2695 | |
| 5316 |
techer
|
13년 전 | 3138 | |
| 5315 | 13년 전 | 1166 | ||
| 5314 |
티즈코리아
|
13년 전 | 1223 | |
| 5313 | 13년 전 | 693 | ||
| 5312 |
|
13년 전 | 1863 | |
| 5311 |
innis
|
13년 전 | 761 | |
| 5310 | 13년 전 | 851 | ||
| 5309 |
changho
|
13년 전 | 657 | |
| 5308 |
|
13년 전 | 1358 | |
| 5307 |
|
13년 전 | 788 | |
| 5306 | 13년 전 | 1157 | ||
| 5305 |
세상속으로
|
13년 전 | 1144 | |
| 5304 | 13년 전 | 656 | ||
| 5303 | 13년 전 | 2235 | ||
| 5302 | 13년 전 | 1384 | ||
| 5301 | 13년 전 | 1100 | ||
| 5300 |
프로프리랜서
|
13년 전 | 1074 | |
| 5299 | 13년 전 | 858 | ||
| 5298 | 13년 전 | 673 | ||
| 5297 |
나랑사귈래
|
13년 전 | 608 | |
| 5296 | 13년 전 | 1336 | ||
| 5295 | 13년 전 | 1111 | ||
| 5294 | 13년 전 | 727 | ||
| 5293 |
|
13년 전 | 5818 | |
| 5292 |
|
13년 전 | 790 | |
| 5291 | 13년 전 | 613 | ||
| 5290 | 13년 전 | 552 | ||
| 5289 | 13년 전 | 649 | ||
| 5288 | 13년 전 | 1157 | ||
| 5287 | 13년 전 | 755 | ||
| 5286 | 13년 전 | 964 | ||
| 5285 | 13년 전 | 1323 | ||
| 5284 |
미스홍당무
|
13년 전 | 852 | |
| 5283 |
basketball
|
13년 전 | 1743 | |
| 5282 | 13년 전 | 781 | ||
| 5281 |
|
13년 전 | 791 | |
| 5280 | 13년 전 | 1204 | ||
| 5279 | 13년 전 | 1370 | ||
| 5278 |
크라이스트
|
13년 전 | 2042 | |
| 5277 |
|
13년 전 | 731 | |
| 5276 |
그누보드환자이송
|
13년 전 | 785 | |
| 5275 | 13년 전 | 698 | ||
| 5274 | 13년 전 | 1364 | ||
| 5273 | 13년 전 | 2003 | ||
| 5272 | 13년 전 | 1119 | ||
| 5271 | 13년 전 | 1434 | ||
| 5270 | 13년 전 | 808 | ||
| 5269 | 13년 전 | 521 | ||
| 5268 | 13년 전 | 637 | ||
| 5267 | 13년 전 | 1177 | ||
| 5266 | 13년 전 | 1835 | ||
| 5265 | 13년 전 | 1606 | ||
| 5264 |
크라이스트
|
13년 전 | 1197 | |
| 5263 |
|
13년 전 | 1263 | |
| 5262 |
제이티37
|
13년 전 | 579 | |
| 5261 |
|
13년 전 | 774 | |
| 5260 |
quenya
|
13년 전 | 2063 | |
| 5259 | 13년 전 | 702 | ||
| 5258 | 13년 전 | 725 | ||
| 5257 |
크라이스트
|
13년 전 | 4587 | |
| 5256 | 13년 전 | 1248 | ||
| 5255 | 13년 전 | 3248 | ||
| 5254 |
|
13년 전 | 702 | |
| 5253 | 13년 전 | 768 | ||
| 5252 | 13년 전 | 765 | ||
| 5251 | 13년 전 | 711 | ||
| 5250 |
dudn1114
|
13년 전 | 1290 | |
| 5249 | 13년 전 | 666 | ||
| 5248 | 13년 전 | 734 | ||
| 5247 | 13년 전 | 2076 | ||
| 5246 | 13년 전 | 500 | ||
| 5245 | 13년 전 | 2190 | ||
| 5244 | 13년 전 | 1449 | ||
| 5243 |
|
13년 전 | 968 | |
| 5242 | 13년 전 | 765 | ||
| 5241 | 13년 전 | 1845 | ||
| 5240 |
|
13년 전 | 505 | |
| 5239 | 13년 전 | 1031 | ||
| 5238 | 13년 전 | 1216 | ||
| 5237 | 13년 전 | 1113 | ||
| 5236 | 13년 전 | 581 | ||
| 5235 |
|
13년 전 | 757 | |
| 5234 |
뭐먹고살지ㅠ
|
13년 전 | 1027 | |
| 5233 | 13년 전 | 3590 | ||
| 5232 | 13년 전 | 3132 | ||
| 5231 | 13년 전 | 3725 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기