点连接提示正在加载然后显示页面 我想弄一个这样的效果,点连接提示正在加载然后显示页面?弹出的这个层后面背景变色,不可操作?怎么做 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 前台:<div> <asp:LinkButton ID="btndel" runat="server" onclick="btndel_Click">Del</asp:LinkButton> </div> <div id="loading" runat="server" style="position: fixed !important; background-position: center center; position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 999; background: #000 url(./Images/loading.gif) no-repeat center center; opacity: 0.2; filter: alpha(opacity=20); font-size: 14px; line-height: 20px;"> <p id="loading-one" style="color: #FFFFFF; position: absolute; top: 50%; left: 50%; margin: 20px 0 0 -50px; padding: 3px 10px;"> Page Loading... </p> </div>后台: protected void Page_Load(object sender, EventArgs e) { loading.Visible = false; } protected void btndel_Click(object sender, EventArgs e) { loading.Visible = true; } <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="upl" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:UpdateProgress ID="UpdateProgress1" runat="server"> <ProgressTemplate> <div> <div>数据加载中,请等待…… </div> </div> </ProgressTemplate> </asp:UpdateProgress> </asp:UpdatePanel> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID ="Button1" EventName ="Click" /> </Triggers> <ContentTemplate> <asp:Label ID="Label1" runat="server" Text="Label"> </asp:Label> </ContentTemplate> </asp:UpdatePanel> <asp:UpdateProgress ID="UpdateProgress1" runat="server"> <ProgressTemplate> <span style =" font-size:12px">数据更新中...... </span> </ProgressTemplate> </asp:UpdateProgress> <asp:Button ID="Button1" runat="server" Text="Button" Width="143px" OnClick="Button1_Click" /> 或使用div显示loading效果 <script language="javascript" type="text/javascript"> document.write(" <div id='loadDiv' style='padding-top: 250px; padding-left: 350px;font-size:x-large;height:400px'> <span id='loading'> <img src=\"../Images/loader2.gif\"/>正在加载数据,请稍候··· </span> </div>"); window.onload = function() { document.getElementById("hiddenDiv").style.display=""; document.getElementById("loadDiv").parentNode.removeChild(document.getElementById("loadDiv")); } </script> 很简单的。主要运用z-Index<div id='d1' style='display:none'>//一个外层框架层, <div > 阻挡层背景灰色的</div>//一直都显示 <div id='msg'>你的信息</msg></div>显示就 d1.style.display='block'不显示就none唉现在这些技术思想我都用不到了。怀才不遇悲哀。 请问一个关于回话状态中sessionID的问题? 点击提交键后,table设定的表格变样了!!! repeater问题!!!!! 帮帮忙!! 为什么用DataTable而不用DataGrid 本人第一次提问小问题多给分:如何在ASP.NET脚本代码中获取C#后台代码中一变量的值 關於HyperLink的迷惑 问一个ASP的问题!谢谢!(很急) ie6为什么不执行javascript? asp.net中web打印,怎样让页眉显示图片? 如何让DataGrid始终水平居中? 有一段js代码在html页面正常,在aspx页面提示“focpic”未定义 监控用户刷新
<asp:LinkButton ID="btndel" runat="server"
onclick="btndel_Click">Del</asp:LinkButton>
</div>
<div id="loading" runat="server" style="position: fixed !important; background-position: center center;
position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 999;
background: #000 url(./Images/loading.gif) no-repeat center center; opacity: 0.2;
filter: alpha(opacity=20); font-size: 14px; line-height: 20px;">
<p id="loading-one" style="color: #FFFFFF; position: absolute; top: 50%; left: 50%;
margin: 20px 0 0 -50px; padding: 3px 10px;">
Page Loading...
</p>
</div>
后台: protected void Page_Load(object sender, EventArgs e)
{
loading.Visible = false;
} protected void btndel_Click(object sender, EventArgs e)
{
loading.Visible = true;
}
</asp:ScriptManager>
<asp:UpdatePanel ID="upl" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<div>
<div>数据加载中,请等待…… </div>
</div>
</ProgressTemplate>
</asp:UpdateProgress>
</asp:UpdatePanel> <asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
<asp:AsyncPostBackTrigger ControlID ="Button1" EventName ="Click" />
</Triggers>
<ContentTemplate>
<asp:Label ID="Label1" runat="server" Text="Label"> </asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<span style =" font-size:12px">数据更新中...... </span>
</ProgressTemplate>
</asp:UpdateProgress>
<asp:Button ID="Button1" runat="server" Text="Button" Width="143px" OnClick="Button1_Click" />
或使用div显示loading效果
<script language="javascript" type="text/javascript">
document.write(" <div id='loadDiv' style='padding-top: 250px; padding-left: 350px;font-size:x-large;height:400px'> <span id='loading'> <img src=\"../Images/loader2.gif\"/>正在加载数据,请稍候··· </span> </div>");
window.onload = function()
{
document.getElementById("hiddenDiv").style.display="";
document.getElementById("loadDiv").parentNode.removeChild(document.getElementById("loadDiv"));
}
</script>
<div id='d1' style='display:none'>//一个外层框架层,
<div > 阻挡层背景灰色的</div>//一直都显示
<div id='msg'>你的信息</msg>
</div>
显示就 d1.style.display='block'
不显示就none
唉现在这些技术思想我都用不到了。怀才不遇悲哀。