您的位置:首页 > 理论基础 > 计算机网络

很好的正在加载提示的代码(源于网络)

2012-05-23 15:36 585 查看
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BrowseAttachedFile.aspx.cs" Inherits="BrowseAttachedFile" %>

<!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>

<script language=javascript>

<!--

document.write('<div id=loadDiv style="padding-top:50; padding-left:50;color:red">' + '正在加载,请稍候<span id="loading"></span></div>');

var setInterval1 = setInterval("loading.innerText +='.'", 300);

var setInterval2 = setInterval("loading.innerText =''", 15000);

function window.onload() {

hiddenDiv.style.display = ""; //显示页面内容

loadDiv.removeNode(true);

clearInterval(setInterval1);

clearInterval(setInterval2);

}

// -->

</script>

</head>

<body style="margin-top:20px; ">

<form id="form1" runat="server" style="width: 1200px; left: 20px; position: absolute;">

<div id=hiddenDiv style="display:none"> <!--此div中间加入自己的内容-->

<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>

</div>

</form>

</body>

</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐