网学网为广大网友收集整理了,javaScrip 居顶部的浮动面版,希望对大家有所帮助!
javaScrip 居顶部的浮动面版<script language="javascript"><!-- Beginfunction setVariables() {if (navigator.appName == "Netscape") {v=".top=";dS="document.";sD="";y="window.pageYOffset";}else {v=".pixelTop=";dS="";sD=".style";y="document.body.scrollTop";}}function checkLocation() {object="object1";yy=eval(y)+30;eval(dS+object+sD+v+yy);setTimeout("checkLocation()",10);}End --></script>
<body OnLoad="setVariables();checkLocation()"><span id="object1" style="position:absolute; visibility:show; left:10px; top:0px"><table width="80" border="0" cellpadding="3" cellspacing="3" bgcolor="#FFCC99"><tr><td><a href="http://myeducs.cn/" target="_self">首页</a></td></tr><tr><td><a href="#" target="_self">新闻</a></td></tr><tr><td><a href="#" target="_self">娱乐</a></td></tr><tr><td><a href="#" target="_self">财经</a></td></tr><tr><td><a href="#" target="_self">军事</a></td></tr><tr><td><a href="#" target="_self">生活</a></td></tr></table></span>