따라다니는게 아니라 항상 제일 하단에 스티커처럼 고정되어 있는것처럼 할려면 어떻게 해야하나요?
참고로 경향신문 모바일입니다.
<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 4830 |
임페리얼웹
|
13년 전 | 1372 | |
| 4829 |
임페리얼웹
|
13년 전 | 722 | |
| 4828 | 13년 전 | 3484 | ||
| 4827 |
|
13년 전 | 1241 | |
| 4826 | 13년 전 | 2750 | ||
| 4825 | 13년 전 | 1085 | ||
| 4824 |
gnuskin쩜net
|
13년 전 | 772 | |
| 4823 | 13년 전 | 819 | ||
| 4822 |
visualp
|
13년 전 | 685 | |
| 4821 |
다케미카코
|
13년 전 | 1262 | |
| 4820 | 13년 전 | 1349 | ||
| 4819 | 13년 전 | 2667 | ||
| 4818 |
크라이스트
|
13년 전 | 4239 | |
| 4817 |
임페리얼웹
|
13년 전 | 714 | |
| 4816 | 13년 전 | 3264 | ||
| 4815 |
하모니칼수
|
13년 전 | 653 | |
| 4814 | 13년 전 | 1114 | ||
| 4813 | 13년 전 | 710 | ||
| 4812 |
임페리얼웹
|
13년 전 | 1088 | |
| 4811 |
임페리얼웹
|
13년 전 | 1836 | |
| 4810 | 13년 전 | 1154 | ||
| 4809 | 13년 전 | 632 | ||
| 4808 | 13년 전 | 1285 | ||
| 4807 |
너는나의봄이다
|
13년 전 | 898 | |
| 4806 | 13년 전 | 1297 | ||
| 4805 | 13년 전 | 1777 | ||
| 4804 | 13년 전 | 1078 | ||
| 4803 |
한번잘해보자
|
13년 전 | 721 | |
| 4802 | 13년 전 | 1907 | ||
| 4801 |
꼬꼬아부지
|
13년 전 | 1186 | |
| 4800 | 13년 전 | 778 | ||
| 4799 |
|
13년 전 | 726 | |
| 4798 | 13년 전 | 1076 | ||
| 4797 |
한번잘해보자
|
13년 전 | 616 | |
| 4796 | 13년 전 | 1724 | ||
| 4795 | 13년 전 | 1005 | ||
| 4794 |
|
13년 전 | 1018 | |
| 4793 |
|
13년 전 | 658 | |
| 4792 | 13년 전 | 1292 | ||
| 4791 | 13년 전 | 2101 | ||
| 4790 |
|
13년 전 | 622 | |
| 4789 |
한번잘해보자
|
13년 전 | 517 | |
| 4788 |
|
13년 전 | 694 | |
| 4787 | 13년 전 | 3287 | ||
| 4786 |
한번잘해보자
|
13년 전 | 758 | |
| 4785 | 13년 전 | 1307 | ||
| 4784 | 13년 전 | 1080 | ||
| 4783 |
|
13년 전 | 725 | |
| 4782 | 13년 전 | 7737 | ||
| 4781 |
크라운엠버서더
|
13년 전 | 1111 | |
| 4780 | 13년 전 | 1757 | ||
| 4779 | 13년 전 | 758 | ||
| 4778 | 13년 전 | 1089 | ||
| 4777 | 13년 전 | 919 | ||
| 4776 | 13년 전 | 1888 | ||
| 4775 | 13년 전 | 3318 | ||
| 4774 | 13년 전 | 1534 | ||
| 4773 | 13년 전 | 3241 | ||
| 4772 | 13년 전 | 1418 | ||
| 4771 | 13년 전 | 3863 | ||
| 4770 | 13년 전 | 1426 | ||
| 4769 | 13년 전 | 912 | ||
| 4768 | 13년 전 | 1888 | ||
| 4767 | 13년 전 | 2665 | ||
| 4766 | 13년 전 | 1574 | ||
| 4765 | 13년 전 | 1382 | ||
| 4764 | 13년 전 | 3144 | ||
| 4763 | 13년 전 | 1165 | ||
| 4762 |
|
13년 전 | 725 | |
| 4761 | 13년 전 | 1612 | ||
| 4760 | 13년 전 | 852 | ||
| 4759 |
NTYPE
|
13년 전 | 5177 | |
| 4758 |
프로프리랜서
|
13년 전 | 829 | |
| 4757 |
프로프리랜서
|
13년 전 | 1216 | |
| 4756 | 13년 전 | 816 | ||
| 4755 |
원시인교주
|
13년 전 | 838 | |
| 4754 |
there007
|
13년 전 | 956 | |
| 4753 | 13년 전 | 1767 | ||
| 4752 |
세상의중심
|
13년 전 | 1577 | |
| 4751 | 13년 전 | 1303 | ||
| 4750 | 13년 전 | 1504 | ||
| 4749 |
또다른세상
|
13년 전 | 3657 | |
| 4748 | 13년 전 | 769 | ||
| 4747 |
cula100jak
|
13년 전 | 1658 | |
| 4746 | 13년 전 | 1481 | ||
| 4745 |
|
13년 전 | 618 | |
| 4744 |
designcity
|
13년 전 | 744 | |
| 4743 | 13년 전 | 621 | ||
| 4742 |
|
13년 전 | 8356 | |
| 4741 | 13년 전 | 850 | ||
| 4740 | 13년 전 | 1656 | ||
| 4739 | 13년 전 | 1326 | ||
| 4738 |
|
13년 전 | 752 | |
| 4737 |
Xerro
|
13년 전 | 492 | |
| 4736 | 13년 전 | 3723 | ||
| 4735 |
keith
|
13년 전 | 542 | |
| 4734 |
|
13년 전 | 698 | |
| 4733 | 13년 전 | 1753 | ||
| 4732 |
|
13년 전 | 1251 | |
| 4731 |
|
13년 전 | 1297 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기