따라다니는게 아니라 항상 제일 하단에 스티커처럼 고정되어 있는것처럼 할려면 어떻게 해야하나요?
참고로 경향신문 모바일입니다.
<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5930 | 12년 전 | 4642 | ||
| 5929 | 12년 전 | 7840 | ||
| 5928 | 12년 전 | 789 | ||
| 5927 | 13년 전 | 1417 | ||
| 5926 | 13년 전 | 1833 | ||
| 5925 |
김준수사랑
|
13년 전 | 1250 | |
| 5924 |
|
13년 전 | 2760 | |
| 5923 | 13년 전 | 959 | ||
| 5922 | 13년 전 | 1166 | ||
| 5921 | 13년 전 | 658 | ||
| 5920 | 13년 전 | 1181 | ||
| 5919 |
|
13년 전 | 1374 | |
| 5918 | 13년 전 | 12590 | ||
| 5917 |
프로프리랜서
|
13년 전 | 1099 | |
| 5916 |
프로프리랜서
|
13년 전 | 4629 | |
| 5915 |
프로프리랜서
|
13년 전 | 1608 | |
| 5914 |
프로프리랜서
|
13년 전 | 653 | |
| 5913 |
프로프리랜서
|
13년 전 | 935 | |
| 5912 |
프로프리랜서
|
13년 전 | 3746 | |
| 5911 |
프로프리랜서
|
13년 전 | 925 | |
| 5910 |
|
13년 전 | 4583 | |
| 5909 |
수야3019
|
13년 전 | 673 | |
| 5908 | 13년 전 | 834 | ||
| 5907 | 13년 전 | 1233 | ||
| 5906 | 13년 전 | 8757 | ||
| 5905 |
프로프리랜서
|
13년 전 | 1473 | |
| 5904 | 13년 전 | 2497 | ||
| 5903 | 13년 전 | 1652 | ||
| 5902 | 13년 전 | 1927 | ||
| 5901 | 13년 전 | 2014 | ||
| 5900 |
프로프리랜서
|
13년 전 | 1090 | |
| 5899 |
프로프리랜서
|
13년 전 | 1280 | |
| 5898 | 13년 전 | 17673 | ||
| 5897 | 13년 전 | 2336 | ||
| 5896 | 13년 전 | 4360 | ||
| 5895 | 13년 전 | 1692 | ||
| 5894 | 13년 전 | 2102 | ||
| 5893 |
프로프리랜서
|
13년 전 | 2160 | |
| 5892 | 13년 전 | 16039 | ||
| 5891 |
bitmaster
|
13년 전 | 1080 | |
| 5890 |
프로프리랜서
|
13년 전 | 946 | |
| 5889 |
|
13년 전 | 724 | |
| 5888 | 13년 전 | 1618 | ||
| 5887 |
|
13년 전 | 3199 | |
| 5886 | 13년 전 | 3448 | ||
| 5885 | 13년 전 | 2109 | ||
| 5884 | 13년 전 | 5651 | ||
| 5883 | 13년 전 | 2822 | ||
| 5882 | 13년 전 | 6030 | ||
| 5881 | 13년 전 | 1637 | ||
| 5880 | 13년 전 | 20717 | ||
| 5879 | 13년 전 | 907 | ||
| 5878 |
나의라임토마토
|
13년 전 | 1407 | |
| 5877 | 13년 전 | 16773 | ||
| 5876 |
maniAc
|
13년 전 | 2805 | |
| 5875 | 13년 전 | 1039 | ||
| 5874 | 13년 전 | 3735 | ||
| 5873 |
lainfox
|
13년 전 | 1183 | |
| 5872 | 13년 전 | 1346 | ||
| 5871 | 13년 전 | 797 | ||
| 5870 | 13년 전 | 2529 | ||
| 5869 |
AMDbest
|
13년 전 | 1513 | |
| 5868 |
한번잘해보자
|
13년 전 | 658 | |
| 5867 |
|
13년 전 | 917 | |
| 5866 | 13년 전 | 7494 | ||
| 5865 | 13년 전 | 2408 | ||
| 5864 | 13년 전 | 938 | ||
| 5863 | 13년 전 | 1311 | ||
| 5862 | 13년 전 | 2876 | ||
| 5861 | 13년 전 | 1028 | ||
| 5860 | 13년 전 | 19330 | ||
| 5859 | 13년 전 | 2944 | ||
| 5858 | 13년 전 | 2653 | ||
| 5857 | 13년 전 | 4824 | ||
| 5856 |
|
13년 전 | 1952 | |
| 5855 | 13년 전 | 817 | ||
| 5854 | 13년 전 | 1008 | ||
| 5853 | 13년 전 | 16107 | ||
| 5852 | 13년 전 | 825 | ||
| 5851 | 13년 전 | 2222 | ||
| 5850 | 13년 전 | 1773 | ||
| 5849 |
AMDbest
|
13년 전 | 1308 | |
| 5848 |
|
13년 전 | 1164 | |
| 5847 |
SeanLee
|
13년 전 | 1304 | |
| 5846 | 13년 전 | 23466 | ||
| 5845 | 13년 전 | 2652 | ||
| 5844 | 13년 전 | 28807 | ||
| 5843 |
|
13년 전 | 2207 | |
| 5842 | 13년 전 | 22523 | ||
| 5841 | 13년 전 | 5744 | ||
| 5840 |
Quincy
|
13년 전 | 936 | |
| 5839 | 13년 전 | 967 | ||
| 5838 | 13년 전 | 2820 | ||
| 5837 | 13년 전 | 1097 | ||
| 5836 | 13년 전 | 2317 | ||
| 5835 | 13년 전 | 1520 | ||
| 5834 | 13년 전 | 1504 | ||
| 5833 | 13년 전 | 6677 | ||
| 5832 | 13년 전 | 5214 | ||
| 5831 | 13년 전 | 1071 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기