따라다니는게 아니라 항상 제일 하단에 스티커처럼 고정되어 있는것처럼 할려면 어떻게 해야하나요?
참고로 경향신문 모바일입니다.
<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7330 | 11년 전 | 1671 | ||
| 7329 | 11년 전 | 930 | ||
| 7328 | 11년 전 | 2215 | ||
| 7327 | 11년 전 | 1716 | ||
| 7326 | 11년 전 | 3796 | ||
| 7325 | 11년 전 | 2261 | ||
| 7324 | 11년 전 | 4505 | ||
| 7323 |
호식이와미돌
|
11년 전 | 1276 | |
| 7322 |
호식이와미돌
|
11년 전 | 1137 | |
| 7321 | 11년 전 | 1779 | ||
| 7320 | 11년 전 | 1753 | ||
| 7319 | 11년 전 | 1314 | ||
| 7318 |
|
11년 전 | 965 | |
| 7317 |
멋진남자임
|
11년 전 | 1612 | |
| 7316 |
잘살아보자
|
11년 전 | 982 | |
| 7315 | 11년 전 | 1087 | ||
| 7314 | 11년 전 | 1304 | ||
| 7313 |
잘살아보자
|
11년 전 | 1115 | |
| 7312 | 11년 전 | 875 | ||
| 7311 |
사랑한데이
|
11년 전 | 2055 | |
| 7310 |
잘살아보자
|
11년 전 | 1871 | |
| 7309 |
잘살아보자
|
11년 전 | 3039 | |
| 7308 |
잘살아보자
|
11년 전 | 1015 | |
| 7307 |
잘살아보자
|
11년 전 | 778 | |
| 7306 | 11년 전 | 863 | ||
| 7305 |
잘살아보자
|
11년 전 | 2754 | |
| 7304 | 11년 전 | 1013 | ||
| 7303 | 11년 전 | 1211 | ||
| 7302 | 11년 전 | 715 | ||
| 7301 | 11년 전 | 1500 | ||
| 7300 |
mijaya
|
11년 전 | 1490 | |
| 7299 | 11년 전 | 901 | ||
| 7298 | 11년 전 | 1084 | ||
| 7297 | 11년 전 | 762 | ||
| 7296 | 11년 전 | 721 | ||
| 7295 | 11년 전 | 1551 | ||
| 7294 | 11년 전 | 894 | ||
| 7293 | 11년 전 | 799 | ||
| 7292 | 11년 전 | 903 | ||
| 7291 |
잘살아보자
|
11년 전 | 1089 | |
| 7290 |
잘살아보자
|
11년 전 | 737 | |
| 7289 | 11년 전 | 781 | ||
| 7288 |
잘살아보자
|
11년 전 | 1300 | |
| 7287 | 11년 전 | 820 | ||
| 7286 |
잘살아보자
|
11년 전 | 1317 | |
| 7285 | 11년 전 | 812 | ||
| 7284 | 11년 전 | 979 | ||
| 7283 | 11년 전 | 1006 | ||
| 7282 | 11년 전 | 757 | ||
| 7281 | 11년 전 | 788 | ||
| 7280 | 11년 전 | 1025 | ||
| 7279 | 11년 전 | 1956 | ||
| 7278 | 11년 전 | 790 | ||
| 7277 | 11년 전 | 803 | ||
| 7276 | 11년 전 | 744 | ||
| 7275 | 11년 전 | 1156 | ||
| 7274 | 11년 전 | 807 | ||
| 7273 | 11년 전 | 711 | ||
| 7272 | 11년 전 | 1042 | ||
| 7271 | 11년 전 | 1370 | ||
| 7270 | 11년 전 | 997 | ||
| 7269 | 11년 전 | 925 | ||
| 7268 | 11년 전 | 967 | ||
| 7267 | 11년 전 | 1801 | ||
| 7266 | 11년 전 | 872 | ||
| 7265 | 11년 전 | 929 | ||
| 7264 |
잘살아보자
|
11년 전 | 2706 | |
| 7263 |
잘살아보자
|
11년 전 | 2253 | |
| 7262 |
잘살아보자
|
11년 전 | 1138 | |
| 7261 |
잘살아보자
|
11년 전 | 1629 | |
| 7260 |
잘살아보자
|
11년 전 | 1242 | |
| 7259 | 11년 전 | 1155 | ||
| 7258 |
잘살아보자
|
11년 전 | 1288 | |
| 7257 |
잘살아보자
|
11년 전 | 1889 | |
| 7256 | 11년 전 | 929 | ||
| 7255 |
그누5입문
|
11년 전 | 1937 | |
| 7254 | 11년 전 | 2161 | ||
| 7253 |
|
11년 전 | 856 | |
| 7252 | 11년 전 | 1001 | ||
| 7251 | 11년 전 | 712 | ||
| 7250 | 11년 전 | 1675 | ||
| 7249 | 11년 전 | 1544 | ||
| 7248 |
sogo87
|
11년 전 | 1031 | |
| 7247 | 11년 전 | 913 | ||
| 7246 | 11년 전 | 691 | ||
| 7245 |
잘살아보자
|
11년 전 | 1067 | |
| 7244 | 11년 전 | 1519 | ||
| 7243 |
presee
|
11년 전 | 588 | |
| 7242 |
sogo87
|
11년 전 | 778 | |
| 7241 | 11년 전 | 859 | ||
| 7240 |
브라이언2
|
11년 전 | 881 | |
| 7239 |
|
11년 전 | 1086 | |
| 7238 | 11년 전 | 2616 | ||
| 7237 |
잘살아보자
|
11년 전 | 2274 | |
| 7236 |
dethos79
|
11년 전 | 1836 | |
| 7235 |
멋진남자임
|
11년 전 | 1397 | |
| 7234 | 11년 전 | 1338 | ||
| 7233 | 11년 전 | 2311 | ||
| 7232 | 11년 전 | 1580 | ||
| 7231 | 11년 전 | 2780 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기