您好,欢迎访问四川鑫光豪耀机电有限公司!

咨询热线:

18980820575
✕

营山发电机维修,营山柴油发电机维修,品牌发电机维修,发电机维修服务公司

js简单模拟div注册登录功能-创新互联

&nbs

成都创新互联客户idc服务中心,提供四川移动机房托管、成都服务器、成都主机托管、成都双线服务器等业务的一站式服务。通过各地的服务中心,我们向成都用户提供优质廉价的产品以及开放、透明、稳定、高性价比的服务,资深网络工程师在机房提供7*24小时标准级技术保障。p;<style type="text/css">
       #divadd
       {
           border:1px solid#0094ff;
           background-color:#0094ff;
           height:200px;
           position:absolute;
           right:40%;
           bottom:40%;
           text-align:center;
           display:none;
       }
   </style>
   <script type="text/javascript">
       function gel(id){return document.getElementById(id);}
       window.onload = function () {
           gel("bntAdd").onclick = function () {
               gel("divadd").style.display = "block";
           }
           gel("bntoff").onclick = function () {
               gel("divadd").style.display = "none";
           }
       }
   </script>
</head>
<body>
  <table>
      <tr><td><input type="button" value="显示注册" id="bntAdd"/></td></tr>
  </table>
   <div id="divadd" style="width:300px"><br /> <a>注册号:</a><input type="text"/>
       <br/><br/><a> 密码:</a><input type="text"/><br />
       <input type="button" id="bntoff" value="提交"/><input type="button" value="取消"/>
   </div>
</body>js简单模拟div注册登录功能
友情链接 :