따라다니는게 아니라 항상 제일 하단에 스티커처럼 고정되어 있는것처럼 할려면 어떻게 해야하나요?
참고로 경향신문 모바일입니다.
<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5830 | 13년 전 | 1185 | ||
| 5829 | 13년 전 | 5049 | ||
| 5828 | 13년 전 | 6435 | ||
| 5827 | 13년 전 | 1203 | ||
| 5826 |
|
13년 전 | 530 | |
| 5825 | 13년 전 | 896 | ||
| 5824 |
|
13년 전 | 1880 | |
| 5823 | 13년 전 | 5615 | ||
| 5822 |
jfascas
|
13년 전 | 1040 | |
| 5821 | 13년 전 | 1696 | ||
| 5820 | 13년 전 | 1311 | ||
| 5819 |
itlang
|
13년 전 | 507 | |
| 5818 | 13년 전 | 1306 | ||
| 5817 | 13년 전 | 780 | ||
| 5816 | 13년 전 | 624 | ||
| 5815 | 13년 전 | 6134 | ||
| 5814 | 13년 전 | 860 | ||
| 5813 |
악마의유혹
|
13년 전 | 461 | |
| 5812 | 13년 전 | 2802 | ||
| 5811 | 13년 전 | 1174 | ||
| 5810 | 13년 전 | 3534 | ||
| 5809 | 13년 전 | 1355 | ||
| 5808 | 13년 전 | 1061 | ||
| 5807 | 13년 전 | 572 | ||
| 5806 | 13년 전 | 559 | ||
| 5805 |
angrysol
|
13년 전 | 816 | |
| 5804 | 13년 전 | 1005 | ||
| 5803 | 13년 전 | 1733 | ||
| 5802 |
angrysol
|
13년 전 | 1050 | |
| 5801 |
후라보노보노
|
13년 전 | 2136 | |
| 5800 | 13년 전 | 1101 | ||
| 5799 |
|
13년 전 | 4189 | |
| 5798 |
|
13년 전 | 3359 | |
| 5797 |
|
13년 전 | 4933 | |
| 5796 | 13년 전 | 7538 | ||
| 5795 | 13년 전 | 2777 | ||
| 5794 | 13년 전 | 2228 | ||
| 5793 |
|
13년 전 | 658 | |
| 5792 | 13년 전 | 2970 | ||
| 5791 | 13년 전 | 842 | ||
| 5790 | 13년 전 | 4328 | ||
| 5789 |
|
13년 전 | 2474 | |
| 5788 |
|
13년 전 | 1851 | |
| 5787 |
오지랖선생
|
13년 전 | 1617 | |
| 5786 | 13년 전 | 5923 | ||
| 5785 | 13년 전 | 1743 | ||
| 5784 |
|
13년 전 | 1450 | |
| 5783 | 13년 전 | 1305 | ||
| 5782 |
|
13년 전 | 2818 | |
| 5781 | 13년 전 | 2852 | ||
| 5780 | 13년 전 | 1155 | ||
| 5779 |
|
13년 전 | 1358 | |
| 5778 |
오리진소프트
|
13년 전 | 4608 | |
| 5777 | 13년 전 | 676 | ||
| 5776 | 13년 전 | 1141 | ||
| 5775 | 13년 전 | 1454 | ||
| 5774 | 13년 전 | 1874 | ||
| 5773 |
|
13년 전 | 1910 | |
| 5772 | 13년 전 | 1675 | ||
| 5771 | 13년 전 | 4782 | ||
| 5770 | 13년 전 | 1126 | ||
| 5769 | 13년 전 | 6106 | ||
| 5768 |
|
13년 전 | 1576 | |
| 5767 | 13년 전 | 1684 | ||
| 5766 |
프로프리랜서
|
13년 전 | 1381 | |
| 5765 |
|
13년 전 | 1035 | |
| 5764 | 13년 전 | 1760 | ||
| 5763 |
|
13년 전 | 781 | |
| 5762 |
|
13년 전 | 2283 | |
| 5761 | 13년 전 | 615 | ||
| 5760 | 13년 전 | 621 | ||
| 5759 | 13년 전 | 3269 | ||
| 5758 | 13년 전 | 1075 | ||
| 5757 |
|
13년 전 | 740 | |
| 5756 | 13년 전 | 562 | ||
| 5755 | 13년 전 | 1057 | ||
| 5754 |
|
13년 전 | 2223 | |
| 5753 | 13년 전 | 672 | ||
| 5752 | 13년 전 | 1542 | ||
| 5751 | 13년 전 | 762 | ||
| 5750 | 13년 전 | 747 | ||
| 5749 | 13년 전 | 2566 | ||
| 5748 | 13년 전 | 998 | ||
| 5747 | 13년 전 | 1214 | ||
| 5746 |
|
13년 전 | 643 | |
| 5745 | 13년 전 | 1657 | ||
| 5744 | 13년 전 | 666 | ||
| 5743 | 13년 전 | 826 | ||
| 5742 |
프로프리랜서
|
13년 전 | 575 | |
| 5741 | 13년 전 | 637 | ||
| 5740 | 13년 전 | 615 | ||
| 5739 | 13년 전 | 722 | ||
| 5738 | 13년 전 | 1922 | ||
| 5737 | 13년 전 | 978 | ||
| 5736 | 13년 전 | 1086 | ||
| 5735 | 13년 전 | 1988 | ||
| 5734 | 13년 전 | 1137 | ||
| 5733 | 13년 전 | 2776 | ||
| 5732 |
JOYCOM
|
13년 전 | 633 | |
| 5731 | 13년 전 | 3298 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기