우측에 떠다니는 베너
페이지 정보
작성자 최고관리자 작성일 21-02-10 17:31 조회 6,968 댓글 0본문
<!-- 오른쪽 스크롤 배너 시작-->
<script>
<!--
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";
function getRef(id) {
if (isDOM) return document.getElementById(id);
if (isIE4) return document.all[id];
if (isNS4) return document.layers[id];
}
function getSty(id) {
x = getRef(id);
return (isNS4 ? getRef(id) : getRef(id).style);
}
var scrollerHeight = 10;
var puaseBetweenImages = 3000;
var imageIdx = 0;
function moveRightEdge() {
var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
if (isNS4) {
yMenuFrom = divMenu.top;
yMenuTo = windows.pageYOffset; // 위쪽 위치
} else if (isDOM) {
yMenuFrom = parseInt (divMenu.style.top, 10);
yMenuTo = (isNS ? window.pageYOffset : document.body.scrollTop + 10); // 위쪽 위치
}
timeoutNextCheck = 500;
if (yMenuFrom != yMenuTo) {
yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
if (yMenuTo < yMenuFrom)
yOffset = -yOffset;
if (isNS4)
divMenu.top += yOffset;
else if (isDOM)
divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
timeoutNextCheck = 10;
}
setTimeout ("moveRightEdge()", timeoutNextCheck);
}
-->
</script>
<!-- 오른쪽 스크롤 스크립트 끝 -->
<!-- 스크롤 베너 내용 시작//-->
<div id=divMenu style="left: 570px; top:10px; visibility: visible; position: absolute; cursor:hand;">
<table width="150" border="0" cellspacing="0" cellpadding="0" style="margin-left:6;margin-top:3;">
<tr>
<td width="150" height="600" align="center"><a href="http://beautipia.co.kr/diagnosis.html" target="_blak"> <img src="http://beautipia.co.kr/img/diag_banner_04.gif" border="0"></a></td>
</tr>
<tr>
<td align="center"><img src="http://beautipia.co.kr/img/diag_banner_02.gif" width="149" height="49"></td>
</tr>
</table>
</div>
<!-- 스크롤 베너 내용 끝//-->
.
<script>
<!--
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";
function getRef(id) {
if (isDOM) return document.getElementById(id);
if (isIE4) return document.all[id];
if (isNS4) return document.layers[id];
}
function getSty(id) {
x = getRef(id);
return (isNS4 ? getRef(id) : getRef(id).style);
}
var scrollerHeight = 10;
var puaseBetweenImages = 3000;
var imageIdx = 0;
function moveRightEdge() {
var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
if (isNS4) {
yMenuFrom = divMenu.top;
yMenuTo = windows.pageYOffset; // 위쪽 위치
} else if (isDOM) {
yMenuFrom = parseInt (divMenu.style.top, 10);
yMenuTo = (isNS ? window.pageYOffset : document.body.scrollTop + 10); // 위쪽 위치
}
timeoutNextCheck = 500;
if (yMenuFrom != yMenuTo) {
yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
if (yMenuTo < yMenuFrom)
yOffset = -yOffset;
if (isNS4)
divMenu.top += yOffset;
else if (isDOM)
divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
timeoutNextCheck = 10;
}
setTimeout ("moveRightEdge()", timeoutNextCheck);
}
-->
</script>
<!-- 오른쪽 스크롤 스크립트 끝 -->
<!-- 스크롤 베너 내용 시작//-->
<div id=divMenu style="left: 570px; top:10px; visibility: visible; position: absolute; cursor:hand;">
<table width="150" border="0" cellspacing="0" cellpadding="0" style="margin-left:6;margin-top:3;">
<tr>
<td width="150" height="600" align="center"><a href="http://beautipia.co.kr/diagnosis.html" target="_blak"> <img src="http://beautipia.co.kr/img/diag_banner_04.gif" border="0"></a></td>
</tr>
<tr>
<td align="center"><img src="http://beautipia.co.kr/img/diag_banner_02.gif" width="149" height="49"></td>
</tr>
</table>
</div>
<!-- 스크롤 베너 내용 끝//-->
.
댓글목록 0
등록된 댓글이 없습니다.