Simple folding method with only two layers of nodes and each parent node has only one child node

Source: Internet
Author: User

<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "">
<HTML xmlns = "">
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> untitled document </title>
<SCRIPT type = "text/JavaScript">

Function hideall ()
For (I = 0; I <myid. length; I ++)
Myid [I]. style. Display = "NONE ";
Function show (Num)
If (myid [num]. style. Display = "NONE ")
Hideall ();
Myid [num]. style. Display = "inline ";
Myid [num]. style. Display = "NONE"

<A href = "#" onclick = "show (0)"> personnel management </a> <br/>
<Div id = "myid" style = "display: none"> & nbsp employee information <br> </div>
<A href = "#" onclick = "show (1)"> contract management </a> <br/>
<Div id = "myid" style = "display: none"> & nbsp contract information <br/> </div>
<A href = "#" onclick = "show (2)"> resignation management </a> <br/>
<Div id = "myid" style = "display: none"> & nbsp resignation Information </div>

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: 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.