따라다니는게 아니라 항상 제일 하단에 스티커처럼 고정되어 있는것처럼 할려면 어떻게 해야하나요?
참고로 경향신문 모바일입니다.
<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5730 | 13년 전 | 766 | ||
| 5729 | 13년 전 | 3586 | ||
| 5728 | 13년 전 | 1151 | ||
| 5727 |
freejazzme
|
13년 전 | 1111 | |
| 5726 | 13년 전 | 1448 | ||
| 5725 |
itlang
|
13년 전 | 427 | |
| 5724 | 13년 전 | 504 | ||
| 5723 |
crocojea
|
13년 전 | 1481 | |
| 5722 | 13년 전 | 1977 | ||
| 5721 | 13년 전 | 711 | ||
| 5720 |
쿠우우우우
|
13년 전 | 470 | |
| 5719 | 13년 전 | 606 | ||
| 5718 |
|
13년 전 | 586 | |
| 5717 | 13년 전 | 1444 | ||
| 5716 |
|
13년 전 | 1035 | |
| 5715 | 13년 전 | 468 | ||
| 5714 | 13년 전 | 472 | ||
| 5713 | 13년 전 | 537 | ||
| 5712 |
|
13년 전 | 775 | |
| 5711 | 13년 전 | 697 | ||
| 5710 |
minini
|
13년 전 | 489 | |
| 5709 |
|
13년 전 | 1331 | |
| 5708 | 13년 전 | 679 | ||
| 5707 | 13년 전 | 5857 | ||
| 5706 |
오니기리죠
|
13년 전 | 1019 | |
| 5705 |
HSEngine
|
13년 전 | 657 | |
| 5704 |
Giggle
|
13년 전 | 1695 | |
| 5703 | 13년 전 | 504 | ||
| 5702 |
AMDbest
|
13년 전 | 1421 | |
| 5701 |
|
13년 전 | 2888 | |
| 5700 | 13년 전 | 500 | ||
| 5699 |
미션임파썩을
|
13년 전 | 540 | |
| 5698 | 13년 전 | 625 | ||
| 5697 | 13년 전 | 532 | ||
| 5696 | 13년 전 | 433 | ||
| 5695 |
|
13년 전 | 696 | |
| 5694 | 13년 전 | 439 | ||
| 5693 | 13년 전 | 977 | ||
| 5692 | 13년 전 | 949 | ||
| 5691 |
쉽다zzz
|
13년 전 | 718 | |
| 5690 | 13년 전 | 474 | ||
| 5689 | 13년 전 | 632 | ||
| 5688 | 13년 전 | 1412 | ||
| 5687 | 13년 전 | 467 | ||
| 5686 | 13년 전 | 2448 | ||
| 5685 |
AMDbest
|
13년 전 | 2158 | |
| 5684 | 13년 전 | 2038 | ||
| 5683 | 13년 전 | 1352 | ||
| 5682 |
AMDbest
|
13년 전 | 666 | |
| 5681 | 13년 전 | 3799 | ||
| 5680 |
|
13년 전 | 1682 | |
| 5679 | 13년 전 | 2087 | ||
| 5678 |
|
13년 전 | 510 | |
| 5677 |
mobiler
|
13년 전 | 463 | |
| 5676 | 13년 전 | 1600 | ||
| 5675 | 13년 전 | 585 | ||
| 5674 |
PHPㅡASP프로그래머
|
13년 전 | 1812 | |
| 5673 |
PHPㅡASP프로그래머
|
13년 전 | 1487 | |
| 5672 |
PHPㅡASP프로그래머
|
13년 전 | 1277 | |
| 5671 |
PHPㅡASP프로그래머
|
13년 전 | 1211 | |
| 5670 |
PHPㅡASP프로그래머
|
13년 전 | 4607 | |
| 5669 | 13년 전 | 3050 | ||
| 5668 | 13년 전 | 1412 | ||
| 5667 | 13년 전 | 490 | ||
| 5666 | 13년 전 | 1142 | ||
| 5665 |
Darby
|
13년 전 | 1601 | |
| 5664 | 13년 전 | 1338 | ||
| 5663 | 13년 전 | 1122 | ||
| 5662 | 13년 전 | 784 | ||
| 5661 | 13년 전 | 449 | ||
| 5660 | 13년 전 | 841 | ||
| 5659 | 13년 전 | 710 | ||
| 5658 | 13년 전 | 531 | ||
| 5657 | 13년 전 | 536 | ||
| 5656 | 13년 전 | 990 | ||
| 5655 | 13년 전 | 437 | ||
| 5654 | 13년 전 | 390 | ||
| 5653 |
졸린다젠장
|
13년 전 | 477 | |
| 5652 |
|
13년 전 | 395 | |
| 5651 | 13년 전 | 1027 | ||
| 5650 | 13년 전 | 718 | ||
| 5649 | 13년 전 | 2231 | ||
| 5648 | 13년 전 | 479 | ||
| 5647 | 13년 전 | 757 | ||
| 5646 | 13년 전 | 1493 | ||
| 5645 | 13년 전 | 679 | ||
| 5644 | 13년 전 | 614 | ||
| 5643 |
|
13년 전 | 573 | |
| 5642 |
쿠마하우스
|
13년 전 | 685 | |
| 5641 |
goaway
|
13년 전 | 1084 | |
| 5640 |
쿠마하우스
|
13년 전 | 647 | |
| 5639 | 13년 전 | 674 | ||
| 5638 |
쿠마하우스
|
13년 전 | 989 | |
| 5637 | 13년 전 | 803 | ||
| 5636 | 13년 전 | 1410 | ||
| 5635 |
goaway
|
13년 전 | 909 | |
| 5634 |
lllolll
|
13년 전 | 414 | |
| 5633 | 13년 전 | 962 | ||
| 5632 | 13년 전 | 4272 | ||
| 5631 | 13년 전 | 564 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기