首页 > 其他 > 详细

遮罩层实例

时间:2014-05-10 07:53:11      阅读:327      评论:0      收藏:0      [点我收藏+]

代码如下:

bubuko.com,布布扣
 <script type="text/javascript">
     $(function () {
         $(‘#ProjectDialog‘).dialog({
             autoOpen: false,
             width: 1100,
             Height: 700,
             draggable: true,
             resizable: false,
             modal: true,
             zIndex: 599,
             position: { my: "center top", at: "center top", of: window }
         });
     });


     function opend()
     {
         $(‘#ProjectDialog‘).dialog(‘open‘);
         $(‘#ProjectDialog‘).parent().appendTo("form");
     }

     </script>
bubuko.com,布布扣

实现如下:

bubuko.com,布布扣
<div id="ProjectDialog" title="Choose Project">
    <uc1:uc_Product_Search ID="uc_ProjectMenu1" runat="server" />
    </div>

    <input id="Button1" type="button" value="Client button" onclick="opend()" />
    <br />
    <asp:Button ID="Button2" runat="server" Text="Server Button" OnClientClick="opend();return false;" />
    <br />

    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
        </ContentTemplate>
    </asp:UpdatePanel>
bubuko.com,布布扣

效果图:

bubuko.com,布布扣

 

遮罩层实例,布布扣,bubuko.com

遮罩层实例

原文:http://www.cnblogs.com/ethanwill/p/3719229.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!