따라다니는게 아니라 항상 제일 하단에 스티커처럼 고정되어 있는것처럼 할려면 어떻게 해야하나요?
참고로 경향신문 모바일입니다.
<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5630 | 13년 전 | 1053 | ||
| 5629 | 13년 전 | 2698 | ||
| 5628 | 13년 전 | 1273 | ||
| 5627 | 13년 전 | 1651 | ||
| 5626 | 13년 전 | 1278 | ||
| 5625 | 13년 전 | 1945 | ||
| 5624 | 13년 전 | 1349 | ||
| 5623 | 13년 전 | 932 | ||
| 5622 | 13년 전 | 413 | ||
| 5621 | 13년 전 | 13303 | ||
| 5620 | 13년 전 | 1186 | ||
| 5619 | 13년 전 | 3327 | ||
| 5618 | 13년 전 | 959 | ||
| 5617 | 13년 전 | 417 | ||
| 5616 | 13년 전 | 590 | ||
| 5615 |
Preware
|
13년 전 | 405 | |
| 5614 | 13년 전 | 533 | ||
| 5613 |
AMDbest
|
13년 전 | 4317 | |
| 5612 |
AMDbest
|
13년 전 | 6145 | |
| 5611 | 13년 전 | 860 | ||
| 5610 |
AMDbest
|
13년 전 | 4651 | |
| 5609 | 13년 전 | 954 | ||
| 5608 |
|
13년 전 | 470 | |
| 5607 | 13년 전 | 639 | ||
| 5606 | 13년 전 | 457 | ||
| 5605 | 13년 전 | 352 | ||
| 5604 | 13년 전 | 595 | ||
| 5603 |
갑수엔터테인먼트
|
13년 전 | 755 | |
| 5602 | 13년 전 | 409 | ||
| 5601 | 13년 전 | 488 | ||
| 5600 | 13년 전 | 917 | ||
| 5599 | 13년 전 | 7462 | ||
| 5598 |
PHPㅡASP프로그래머
|
13년 전 | 2695 | |
| 5597 | 13년 전 | 402 | ||
| 5596 |
hoinV
|
13년 전 | 990 | |
| 5595 | 13년 전 | 913 | ||
| 5594 | 13년 전 | 1053 | ||
| 5593 | 13년 전 | 4916 | ||
| 5592 |
|
13년 전 | 359 | |
| 5591 | 13년 전 | 873 | ||
| 5590 |
PHPㅡASP프로그래머
|
13년 전 | 2302 | |
| 5589 | 13년 전 | 1936 | ||
| 5588 |
바다로가자
|
13년 전 | 1617 | |
| 5587 |
PHPㅡASP프로그래머
|
13년 전 | 1817 | |
| 5586 | 13년 전 | 2731 | ||
| 5585 | 13년 전 | 378 | ||
| 5584 | 13년 전 | 1856 | ||
| 5583 | 13년 전 | 1271 | ||
| 5582 |
바다로가자
|
13년 전 | 3055 | |
| 5581 |
|
13년 전 | 3092 | |
| 5580 | 13년 전 | 893 | ||
| 5579 |
하하369
|
13년 전 | 3941 | |
| 5578 | 13년 전 | 1008 | ||
| 5577 | 13년 전 | 1202 | ||
| 5576 | 13년 전 | 1628 | ||
| 5575 |
가위바위보
|
13년 전 | 1584 | |
| 5574 |
danielle
|
13년 전 | 678 | |
| 5573 |
|
13년 전 | 848 | |
| 5572 | 13년 전 | 2757 | ||
| 5571 | 13년 전 | 809 | ||
| 5570 | 13년 전 | 1378 | ||
| 5569 |
|
13년 전 | 2102 | |
| 5568 | 13년 전 | 1936 | ||
| 5567 | 13년 전 | 661 | ||
| 5566 |
|
13년 전 | 1293 | |
| 5565 | 13년 전 | 3655 | ||
| 5564 | 13년 전 | 912 | ||
| 5563 | 13년 전 | 1363 | ||
| 5562 | 13년 전 | 860 | ||
| 5561 | 13년 전 | 1035 | ||
| 5560 |
PHPㅡASP프로그래머
|
13년 전 | 1518 | |
| 5559 | 13년 전 | 616 | ||
| 5558 |
there007
|
13년 전 | 1521 | |
| 5557 | 13년 전 | 1165 | ||
| 5556 |
후라보노보노
|
13년 전 | 730 | |
| 5555 | 13년 전 | 9123 | ||
| 5554 | 13년 전 | 814 | ||
| 5553 |
가을이군요
|
13년 전 | 710 | |
| 5552 |
|
13년 전 | 786 | |
| 5551 | 13년 전 | 1507 | ||
| 5550 |
후라보노보노
|
13년 전 | 906 | |
| 5549 |
|
13년 전 | 1004 | |
| 5548 | 13년 전 | 672 | ||
| 5547 | 13년 전 | 523 | ||
| 5546 | 13년 전 | 4603 | ||
| 5545 | 13년 전 | 892 | ||
| 5544 | 13년 전 | 1003 | ||
| 5543 | 13년 전 | 746 | ||
| 5542 | 13년 전 | 6625 | ||
| 5541 | 13년 전 | 804 | ||
| 5540 | 13년 전 | 1132 | ||
| 5539 | 13년 전 | 1106 | ||
| 5538 | 13년 전 | 2816 | ||
| 5537 | 13년 전 | 796 | ||
| 5536 | 13년 전 | 2683 | ||
| 5535 |
|
13년 전 | 1159 | |
| 5534 | 13년 전 | 1752 | ||
| 5533 |
꿈꾸는인생
|
13년 전 | 1316 | |
| 5532 | 13년 전 | 1468 | ||
| 5531 | 13년 전 | 1681 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기