点击“登录”或者“注册”按钮,出一个“登录”或者“注册”对话框给你填写,后面置灰

js:
<head   runat="server">
        <title> 无标题页 </title>
        <script   type="text/javascript">
          function   showMydiv()
          {
                document.body.scroll="no";
                if(window.screen.Height> =document.body.scrollHeight)
                {
                        id1.style.height   =   (window.screen.height   -   155)   +"px";
                }
                else
                {
                        id1.style.height   =   (document.body.scrollHeight)   +   "px";
                }
                mydiv.style.position='absolute';
                id1.style.width   =   (window.screen.width   -   25)   +   "px";
                id1.style.display   =   '';
                mydiv.style.display   =   '';
           
//                 var   frameId='myiframe';
//                 frameSrc='xxx.aspx';
//                 frames[frameId].document.write('loading...');      
//                 frames[frameId].document.close();      
//                 frames[frameId].location.href   =   frameSrc;    

                return   false;
          }
          function   HiddenDiv()
          {
                mydiv.style.display='none';
                id1.style.display='none';
          }
        </script>
</head>

html:
      <asp:Button   ID="Button3"   runat="server"   Text="Button"   OnClientClick="return   showMydiv()"/> </div>
        <div   id="mydiv"   style="width:730px;height:900px;margin-top:-150px;margin-left:-300px;left:45%;top:27%;display:none;z-index:50;">
        <table   width="100%">
            <tr>
                <td   align="right"> <input   id="Button2"   type="button"   value="X"   οnclick="HiddenDiv()"/>
                </td>
              </tr>
              <tr>
                <td   align="center">   <iframe   id="myiframe"   width="100%"   height="550px"   scrolling="no"   style="border-top-style:   outset;   border-right-style:   outset;   border-left-style:   outset;   border-bottom-style:   outset"> </iframe>
                </td>
              </tr>
        </table>
  </div>
 
  <div   id="id1"   style="filter:Alpha(opacity=20);background-color:#000;position:absolute;top:0;left:0;z-index:49;display:none;">
                <input   id="hda"   type="text"   style="display:none"   name="hda"   />
    </div>  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值