우측에 따라다니는 배너삽입
로빈아빠
본문
<script language=javascript>
<!-- //배너 따라다니기?
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
function getRef(id) {
if (isDOM) return document.getElementById(id);
if (isIE4) return document.all[id];
if (isNS4) return document.layers[id];
}
var isNS = navigator.appName == 'Netscape';
function moveRightEdge() {
var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
if (isNS4) {
yMenuFrom = divMenu.top;
yMenuTo = windows.pageYOffset + 60; // 위쪽 위치
} else if (isDOM) {
yMenuFrom = parseInt (divMenu.style.top, 10);
yMenuTo = (isNS ? window.pageYOffset : document.body.scrollTop) + 60; // 위쪽 위치
}
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: 760px; top:0px; visibility: visible; width: 120px; position: absolute'>
<TABLE WIDTH='148' BORDER='0' CELLSPACING='0' CELLPADDING='0'>
<TR>
<TD> <IMG SRC='이미지경로를 절대경로로 사용하세요' BORDER=0 WIDTH=148 HEIGHT=495>
</TD>
</TR>
</TABLE>
</div>
<script language=javascript>
<!-- //배너 따라다니기?
if (isNS4) {
var divMenu = document['divMenu'];
divMenu.top = top.pageYOffset + 100;
divMenu.visibility = 'visible';
moveRightEdge();
} else if (isDOM) {
var divMenu = getRef('divMenu');
divMenu.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 100;
divMenu.style.visibility = 'visible';
moveRightEdge();
}
//-->
</script>
<!-- //배너 따라다니기?
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
function getRef(id) {
if (isDOM) return document.getElementById(id);
if (isIE4) return document.all[id];
if (isNS4) return document.layers[id];
}
var isNS = navigator.appName == 'Netscape';
function moveRightEdge() {
var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
if (isNS4) {
yMenuFrom = divMenu.top;
yMenuTo = windows.pageYOffset + 60; // 위쪽 위치
} else if (isDOM) {
yMenuFrom = parseInt (divMenu.style.top, 10);
yMenuTo = (isNS ? window.pageYOffset : document.body.scrollTop) + 60; // 위쪽 위치
}
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: 760px; top:0px; visibility: visible; width: 120px; position: absolute'>
<TABLE WIDTH='148' BORDER='0' CELLSPACING='0' CELLPADDING='0'>
<TR>
<TD> <IMG SRC='이미지경로를 절대경로로 사용하세요' BORDER=0 WIDTH=148 HEIGHT=495>
</TD>
</TR>
</TABLE>
</div>
<script language=javascript>
<!-- //배너 따라다니기?
if (isNS4) {
var divMenu = document['divMenu'];
divMenu.top = top.pageYOffset + 100;
divMenu.visibility = 'visible';
moveRightEdge();
} else if (isDOM) {
var divMenu = getRef('divMenu');
divMenu.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 100;
divMenu.style.visibility = 'visible';
moveRightEdge();
}
//-->
</script>
관련링크
댓글목록
등록된 댓글이 없습니다.