<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="test8_Default3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.con{ position: absolute;width:50%;height:50%;background-color:silver;left:0px;top:0px}
</style>
</head>
<body>
<!--请用CSS控制下边的DIV是全屏状态-->
<div id="loading" class="con">页面加载中</div>
<form id="form1" runat="server" style="display:none">
显示!!
</form>
</body>
</html>
<script type="text/javascript">
setTimeout("showDiv()",3000);//延迟3秒
function showDiv() {
document.getElementById("loading").style.display = "none";
document.getElementById("form1").style.display = "block"; //显示表单
}
</script>
asp.net 页面延迟加载内容
最新推荐文章于 2021-06-08 20:06:36 发布