<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title>js Show hidden Layers </title>
<script language= "JavaScript" type= "Text/javascript" >
<!--
function Showdiv (TARGETID,OBJN) {
var Target=document.getelementbyid (Targetid);
var Clicktext=document.getelementbyid (OBJN)
if (target.style.display== "block") {
Target.style.display= "None";
clicktext.innertext= "Click to view Details";
} else {
target.style.display= "Block";
Clicktext.innertext= ' Close details information ';
}
}
-
</script>
<style type= "Text/css" >
<!--
Body {font:normal 14px "Arial"}
a {text-decoration:none;}
#showtext {cursor:hand; cursor:pointer;}
#showtext2 {cursor:hand; cursor:pointer;}
#contentid {margin-top:10px; width:100%; border:1px solid #CCC; background: #F1F1F1; padding:15px;}
#contentid2 {margin-top:10px; width:470px; border:1px solid #CCC; background: #F1F1F1; padding:15px;}
. None {Display:none;}
-->
</style>
<body>
<a id= "Showtext" onclick= "Showdiv (' ContentID ', ' Showtext ')" > Click to view more information </a>
<div id= "ContentID" class= "None" > Open content </div>
<p></p>
<a id= "showtext2" onclick= "Showdiv (' Contentid2 ', ' showtext2 ')" > Click to view more information </a>
<div id= "Contentid2" class= "None" >1<br/>
2.<br/>
3.<br/>
4.<br/>
5.<br/>
6. <br/>
7.<br/>
8. <br/>
9.<br/>
10.<br/>
11.<br/>
<br/>
13.<br/>
<br/>
15.<br/>
</div>
</body>
JS Control div Display and hide