If you still don't know how, you can take a look at the simple example below.
After a window pops up, the following layers are inoperable<script><br>function show() //Show hidden layers and pop-up layers<br>{<br> var hideobj=document.getElementById("hidebg");<br> hidebg.style.display="block"; //Show hidden layer<br> hidebg.style.height=document.body.clientHeight "px"; // Set the height of the hidden layer to the height of the current page <br> document.getElementById("hidebox").style.display="block"; //Show the pop-up layer<br>}<br>function hide() //Remove the hidden layer and popup layer <br>{<br> document.getElementById("hidebg").style.display="none";<br> document.getElementById("hidebox").style.display="none";<br> }<br></script>
Click to close< ;/div>
Click to try
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