Home >Web Front-end >JS Tutorial >Code for floating boxes in the current window implemented by javascript_layout and layers

Code for floating boxes in the current window implemented by javascript_layout and layers

WBOY
WBOYOriginal
2016-05-16 18:32:281167browse

[Ctrl A select all Note:
If you need to introduce external Js, you need to refresh to execute ]<script> var delay = 30; //循环间隔 setInterval('disPosition()', delay); //以下函数为获得当前窗口的可见高度 function disPosition(){ oTop=document.documentElement.scrollTop; oBottom=div_absmiddle.offsetTop*2 + div_absmiddle.offsetHeight - 20 + document.documentElement.scrollTop; } </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