따라다니는게 아니라 항상 제일 하단에 스티커처럼 고정되어 있는것처럼 할려면 어떻게 해야하나요?
참고로 경향신문 모바일입니다.
<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6230 |
senseme
|
12년 전 | 1062 | |
| 6229 |
senseme
|
12년 전 | 1081 | |
| 6228 | 12년 전 | 4441 | ||
| 6227 |
senseme
|
12년 전 | 1498 | |
| 6226 |
senseme
|
12년 전 | 1645 | |
| 6225 | 12년 전 | 5501 | ||
| 6224 | 12년 전 | 3273 | ||
| 6223 |
kiplayer
|
12년 전 | 2143 | |
| 6222 | 12년 전 | 1306 | ||
| 6221 | 12년 전 | 3497 | ||
| 6220 | 12년 전 | 2520 | ||
| 6219 | 12년 전 | 2231 | ||
| 6218 |
senseme
|
12년 전 | 1846 | |
| 6217 |
senseme
|
12년 전 | 1539 | |
| 6216 |
senseme
|
12년 전 | 1530 | |
| 6215 |
senseme
|
12년 전 | 1286 | |
| 6214 | 12년 전 | 2399 | ||
| 6213 |
senseme
|
12년 전 | 1673 | |
| 6212 |
senseme
|
12년 전 | 1349 | |
| 6211 |
senseme
|
12년 전 | 2439 | |
| 6210 |
senseme
|
12년 전 | 1618 | |
| 6209 | 12년 전 | 2223 | ||
| 6208 | 12년 전 | 3446 | ||
| 6207 | 12년 전 | 1227 | ||
| 6206 |
senseme
|
12년 전 | 2198 | |
| 6205 | 12년 전 | 1042 | ||
| 6204 |
kiplayer
|
12년 전 | 1534 | |
| 6203 |
senseme
|
12년 전 | 2129 | |
| 6202 |
senseme
|
12년 전 | 1758 | |
| 6201 |
senseme
|
12년 전 | 4571 | |
| 6200 |
senseme
|
12년 전 | 2672 | |
| 6199 |
senseme
|
12년 전 | 2835 | |
| 6198 |
senseme
|
12년 전 | 1240 | |
| 6197 |
senseme
|
12년 전 | 8559 | |
| 6196 |
senseme
|
12년 전 | 3347 | |
| 6195 | 12년 전 | 1438 | ||
| 6194 |
|
12년 전 | 1294 | |
| 6193 |
senseme
|
12년 전 | 2698 | |
| 6192 |
senseme
|
12년 전 | 5371 | |
| 6191 |
senseme
|
12년 전 | 3418 | |
| 6190 | 12년 전 | 1348 | ||
| 6189 | 12년 전 | 13504 | ||
| 6188 |
웹디자인되고파
|
12년 전 | 1209 | |
| 6187 | 12년 전 | 627 | ||
| 6186 | 12년 전 | 3938 | ||
| 6185 | 12년 전 | 1478 | ||
| 6184 | 12년 전 | 9385 | ||
| 6183 | 12년 전 | 796 | ||
| 6182 |
senseme
|
12년 전 | 1244 | |
| 6181 |
senseme
|
12년 전 | 3228 | |
| 6180 |
senseme
|
12년 전 | 857 | |
| 6179 |
senseme
|
12년 전 | 1769 | |
| 6178 | 12년 전 | 3634 | ||
| 6177 | 12년 전 | 1067 | ||
| 6176 | 12년 전 | 959 | ||
| 6175 |
senseme
|
12년 전 | 5305 | |
| 6174 |
senseme
|
12년 전 | 1434 | |
| 6173 |
senseme
|
12년 전 | 756 | |
| 6172 |
senseme
|
12년 전 | 2746 | |
| 6171 |
senseme
|
12년 전 | 2490 | |
| 6170 |
senseme
|
12년 전 | 1507 | |
| 6169 |
senseme
|
12년 전 | 2933 | |
| 6168 |
senseme
|
12년 전 | 6537 | |
| 6167 | 12년 전 | 2141 | ||
| 6166 | 12년 전 | 747 | ||
| 6165 |
페이지팩트
|
12년 전 | 1911 | |
| 6164 |
네오soft
|
12년 전 | 1861 | |
| 6163 |
|
12년 전 | 2607 | |
| 6162 | 12년 전 | 592 | ||
| 6161 |
|
12년 전 | 1695 | |
| 6160 | 12년 전 | 777 | ||
| 6159 | 12년 전 | 1778 | ||
| 6158 |
|
12년 전 | 2685 | |
| 6157 |
sa2pan
|
12년 전 | 1249 | |
| 6156 | 12년 전 | 3895 | ||
| 6155 | 12년 전 | 9969 | ||
| 6154 | 12년 전 | 1127 | ||
| 6153 | 12년 전 | 2456 | ||
| 6152 |
생각보다몸이앞서다
|
12년 전 | 2129 | |
| 6151 | 12년 전 | 2980 | ||
| 6150 |
kiplayer
|
12년 전 | 6011 | |
| 6149 |
|
12년 전 | 2650 | |
| 6148 | 12년 전 | 2975 | ||
| 6147 |
hwang007
|
12년 전 | 953 | |
| 6146 |
aqqasdf
|
12년 전 | 773 | |
| 6145 | 12년 전 | 1866 | ||
| 6144 | 12년 전 | 5881 | ||
| 6143 |
smwkd
|
12년 전 | 1469 | |
| 6142 | 12년 전 | 4706 | ||
| 6141 | 12년 전 | 932 | ||
| 6140 | 12년 전 | 4102 | ||
| 6139 | 12년 전 | 1245 | ||
| 6138 | 12년 전 | 1098 | ||
| 6137 |
SugarSkull
|
12년 전 | 1684 | |
| 6136 | 12년 전 | 1314 | ||
| 6135 |
한번잘해보자
|
12년 전 | 564 | |
| 6134 |
프리랜서개발자
|
12년 전 | 544 | |
| 6133 |
basaria
|
12년 전 | 20448 | |
| 6132 | 12년 전 | 510 | ||
| 6131 | 12년 전 | 1087 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기