<ptml> <pead> <meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/> <title> click Show/Hidden layer </title>//code from www.jb51.net <style type=" Text/css "> A{tex T-decoration:none;} . tab{border:1px solid #e57243; border-top:0;margin:10px 0;text-align:left;width:200px;font-size:14px; . th{border-top:1px Solid #e57243;p adding:5px;font-weight:700;clear:both;background: #f5e1d9;} . td{background:none;padding-left:37px;} </style> <script type= "Text/javascript" > Function Chg (id_num) {var OA = document.getElementById (id_num); var ob = document.getElementById ("test_a"); if (Oa.style.display = = "Block") {Oa.style.display = "none"; ob.innerhtml = "[+]"; }else{oa.style.display = "block"; ob.innerhtml = "[-]"; return false; </script> </pead> <body> <div class= "tab" > <div class= "th TD" Id= "Test" > cloud-Habitat Community, scripting programming base To Welcome you to learn to exchange. </div> <div class= "th" id= "9" > [-] <--click </div> </div> </body> </ptml>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]