Js+div Hide Display Layer code

Source: Internet
Author: User
Tags visibility

Js+div Hide Display Layer code
<script language=javascript>


function Toexit () {<!--The operation of the hidden layer-->
var args=toexit.arguments;<!--Get the input value of the function-->
The first input value of the Var visible=args[0];<!--function-->
if (document.all) {<!--for IE browser-->
if (visible== ' show ') visible= ' visible ';<!--set hidden layer display-->
if (visible== ' hide ') visible= ' hidden ';<!--set hidden layer disappears-->
Theobj=eval ("document.all['" +args[1]+ "]");
if (theobj) theobj.style.visibility=visible;<!--perform the above actions-->
}

}

</script>

<div id=div32
Style= "height:80px; left:10px; Position:absolute; top:10px; Visibility:hidden; width:180px; Z-index:1 ">
<table bgcolor= #FF9900 border=1 cellpadding=0 cellspacing=0 height=80
Width=180> <tbody>
<tr>
&LT;TD height=65 width= "100%" >
<table border=0 cellpadding=0 cellspacing=0 height=80 width= "99%" >
<tbody>
<tr>
&LT;TD height=57> <font
Color= #ffffff > Welcome to the JavaScript world! Here you have unexpected wonderful effects! <b></b></font></td>
</tr>
&LT;TR align= "center" >
&LT;TD height=23 width= "100%" ><a
href= "Javascript:toexit (' hide ', ' div32 ')" ><font color=white> close this layer </font></a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<a href= "Javascript:toexit (' Show ', ' div32 ')" ><font color= "#FF9900" > Open hidden Layer </font></a>
<body>

</body>

<!--This routine practice to open the active hidden layer operation-->
<!--understand the formation mechanism of hidden layer-->
<!--to open and close the hidden layer of the artificial realization-->
< call to!--function-->

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.