62,047
社区成员
发帖
与我相关
我的任务
分享
<%@ Page Language="C#" Debug="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
this.Button3.OnClientClick = "if(confirm('您确定签核同意吗?')){ShowDtsLoading();} return false;";
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script>
function ShowDtsLoading() {
document.getElementById("info").style.display = "";
document.getElementById("info").innerHTML = "正在做什么呢???……………………";
}
</script>
</head>
<body>
<form id="form1" runat="server" method="post">
<asp:Button ID="Button3" runat="server" Text="测试" />
</form>
<div id="info" style="display: none"></div>
</body>
</html>
<script language="javascript" type="text/javascript">
function ShowDtsLoading(){
var div = document.createElement("div");
div.id = "oDiv";
div.style.width = document.body.offsetWidth;
div.style.height = screen.height;
div.className = "css2";
div.innerHTML = "" +" " +"" +" " +"<table height='100%' ><tr><td align ='center' valign ='middle' ><img src='css/centerbody/loading.gif'>"+" <font color='red'>操作中,请稍后…… </font></td></tr></table>";
document.body.appendChild(div);
document.body.style.overflowX="hidden";
document.body.style.overflowY="hidden";
}
</script>