正在提交中

在界面上添加一个要显示的层:
<div id=”doing” runat=”server” style=”Z-INDEX: 12000; LEFT: 0px; WIDTH: 100%; CURSOR: wait; POSITION: absolute; TOP: 0px; HEIGHT: 100%”>
<table width=”100%” height=”100%”>
<tr align=”center” valign=”middle”>
<td>
<table width=”169″ height=”62″ bgcolor=”#99cccc” style=”FILTER: Alpha(Opacity=75); WIDTH: 169px; HEIGHT: 62px”>
<tr align=”center” valign=”middle”>
<td>
页面提交中.<br>
Loading.
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
当然,大家可以自定义的更漂亮一点,加一些图片什么的,我使用100%的层,是为了防止点击。 2.给要提交的按钮添加客户端脚本: 在Page_OnLoad事件中加入: this.Button1.Attributes.Add(“onclick”,”javascript:document.getElementById(‘doing’).style.visibility=’visible’;”); this.document.FORM.Submit.value=”正在提交中”; this.document.FORM.Submit.disabled=”disabled”; ==========================================
<table id=’pleasewait’ style=”display:” width=’100%’ height=”200″>
<tr>
<td align=’center’>
<font color=’white’ style=”font-size:26pt”>系统正在加载内容,请耐心等待…</font>
</td>
</tr>
<tr>
<td align=’center’>
</td>
</tr>
</table>
<script language=”javascript”>
//var frm = document.hotmail;
//folderID = “F000000001”;
//MessengerCell = “4”;
//ColspanSize = “5”;
document.all.pleasewait.style.display = “none”;
//alert(document.all.pleasewait.length);
//document.remove(“pleasewait”);
</script>

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

相关文章

开始在上面输入您的搜索词,然后按回车进行搜索。按ESC取消。

返回顶部