c#大圣之路笔记——c# 页面加载数据过长等待显示框
2016-03-22 11:51
567 查看
<script language="javascript"> function ShowWaiting() { document.getElementById('doing').style.visibility = 'visible'; } function CloseWaiting() { document.getElementById('doing').style.visibility = 'hidden'; } function MyOnload() { document.getElementById('doing').style.visibility = 'hidden'; } if (window.onload == null) { window.onload = MyOnload; } </script>
<div id='doing' style='z-index: 12000; left: 0px; width: 100%; cursor: wait; position: absolute; top: 0px; height: 100%; filter: alpha(opacity=45); opacity: 0.5; color: #000000; background-color: #FFFFFF;'> <table width='100%' height='100%' id="Table1"> <tr align='center' valign='middle'> <td> <table id="Table2" class="loading"> <tr align='center' valign='middle'> <td> <img src="../Images/Waitting.gif" /> </td> </tr> </table> </td> </tr> </table> </div>
this.btnUpload.Attributes.Add("onclick", "ShowWaiting();");
way 2
<script language="javascript"> function Window_Load(Flag) { if (Flag == 0) { document.all['Loading'].style.left = (document.documentElement.clientWidth - 250) / 2; document.all['Loading'].style.top = (document.documentElement.clientHeight - 60) / 2; document.all['Loading'].style.width = 250; document.all['Loading'].style.height = 60; document.all['Loading'].style.display = 'block'; //show the window } else { document.all['Loading'].style.width = 0; document.all['Loading'].style.height = 0; document.all['Loading'].style.display = 'none'; //hide the window } } </script>
<body ms_positioning="GridLayout" onload="Window_Load(1)"> <form id="form1" method="post" runat="server" onsubmit="Window_Load(0)"> <table width="100%">
<div id="Loading" style="position:absolute;z-index:3;width:0;height:0;border-width:1;border-style:ridge;background-color:white;padding-top:10px"> <center><table border="0"><tr><td valign="middle"> <img alt="页面提交时出现等待窗口" src="../images/Waitting.gif" border="0" WIDTH="30" HEIGHT="30"></td> <td> </td><td valign="middle"><span id=txtLoading0 style="font-size:14px; color: #800080; font-weight: bold;">页面正在加载数据,请稍候...</span> <br><span id=txtLoading1 style="font-size:14px; color: #800080;">Loading,please wait...</span></td></tr></table></center></div>
相关文章推荐
- 用C# 拓展方法给现有的类增加 可用函数
- C# 使用Log4Net记录程序日志
- C# PLINQ 内存列表查询优化历程
- C#关于AutoResetEvent的使用介绍[转载]
- C# 实现多语言界面
- C# 该行已经属于还有一个表 的解决方法
- CSharp调用默认浏览器打开网页的几种方法
- C#学习笔记 线程同步问题
- VS2015 C#的单元测试
- “一片空白”的c#
- 编写c#程序,输出平均分和高于平均分的同学
- C#学习前辈的真言
- 作业C#程序分析
- 读C#程序最小公倍数答案就是:2123581660200
- 读C#程序
- c#程序阅读分析
- C#程序解读
- c#开发中遇到System.AccessViolationException
- C# 面向对象:封装、继承、多态
- C# 版本 支付