无标题文档 <script> <br /> var timer <br /> function scrolltop() <br /> { <br /> document.getElementById('scrollmenu').style.top=document.body.scrollTop <br /> timer=setTimeout("scrolltop()",1) <br /> } <br /> function stoptimer() <br /> { <br /> clearTimeout(timer) <br /> } <br /> </script>
滚动页面,就可以看到“置顶”的菜单。
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn