스크립트 잘 아시는분답변부탁드립니다 정보
스크립트 잘 아시는분답변부탁드립니다본문
<head>
<STYLE>
<!--
#floater {position: absolute;
border-style: ridge;
border-width: 0px;
border-color: #E2F165;
background-color: #F3D026;
width: 200px;
height: 75px;
text-align: center;
z-index: 1; }
table.pressed {border-style: inset;
border-width: 0px;
background-color: #ECF1E8;
width: 160px;
height: 45px;
margin-top: 8pt; }
td.mnuMsg {text-align: center;
font-family: Verdana, Arial, Helvetica, Tahoma, MS Sans Serif;
font-weight: bold;
font-size: 8pt;
color: #006699; }
-->
</STYLE>
<SCRIPT LANGUAGE="JavaScript">
// Break any frames not on this page.
if (window != top)
top.location.href = location.href;
var Xpos = 0;
var Ypos = 0;
var Ygravity = 0.9;
var scrollPos = 0;
var oldScrollPos = 0;
function FloatMenu() {
docWidth = document.body.clientWidth; // Update document width
docHeight = document.body.clientHeight; // Update document height
oldScrollPos = scrollPos;
scrollPos = document.body.scrollTop; // Update scrollbar position
Xpos = (docWidth - floater.offsetWidth) - 10;
Yboundary = ((scrollPos + docHeight) - floater.offsetHeight) - 10;
if (floater.offsetTop < Yboundary - 10) // Object is behind boundary
Ypos += 3;
if (floater.offsetTop > Yboundary + 10) // Object is past boundary
Ypos -= 3;
Ypos *= Ygravity; // Slow object down
floater.style.pixelLeft = Xpos;
floater.style.pixelTop += Ypos; // Make object bounce
}
window.setInterval("FloatMenu()", 40);
</SCRIPT>
</head>
<Body>
<div ID="floater">
<TABLE CLASS="pressed">
<TD CLASS="mnuMsg">
내용</TD>
</tr>
</TABLE>
</div>
</body>
댓글 전체
// Break any frames not on this page.
if (window != top)
top.location.href = location.href;
가 유력해 보이는데요....없애버리세요...^^;