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
Release: 2016-05-16 18:32:28
Original
1158 people have browsed it

[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>
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template