很好的正在加载提示的代码(源于网络)
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>
<!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>
相关文章推荐
- 每个App都会用到的LoadingLayout(加载中、正在加载、无网络连接等......)
- 原生代码加载网络图片和Volley和Picasso的简单介绍和优缺点对比
- Android 自定义圆形头像CircleImageView支持加载网络图片的实现代码
- Android Volley入门到精通:使用Volley加载网络图片(示例,出错代码)
- 加载网络图片中,给ImageView增加提示文字
- Android进步之路一:显示“正在加载,请稍候.......”进度对话框示例代码以及具体细节讲解
- win7下手工注册dll组件时,提示模块“xx.dll”已加载,但对DllRegisterServer的调用失败,错误代码为0x80020009
- jQuery异步提交时显示正在加载的提示
- myEclipse7.5中安装 javascript,extjs的代码自动提示spket插件和extjs desiner可视化代码生成工具,extjs的一个很好的学习视频资源地址
- ListView异步加载图片是非常实用的方法,凡是是要通过网络获取图片资源一般使用这种方法比较好,用户体验好,下面就说实现方法,先贴上主方法的代码:
- 64位Win8添加Oracle ODBC驱动时提示"无法加载ORACLE In OraDb11g_Home1 ODBC驱动程序的安装例程,因为存在系统错误代码193"?
- Picasso加载网络图片失败,提示decodestream时返回null
- EasyUI闪屏,EasyUI页面加载提示:原理+代码+效果图
- easyui 使用loading"正在加载..." 风格的加载提示信息
- 【代码笔记】iOS-实现网络图片的异步加载和缓存
- Win8.1系统连接网络打印机时提示错误代码0X00000490的故障分析及解决方法
- Python神经网络代码识别手写字的实现流程(一):加载mnist数据
- Android实现加载时提示“正在加载,请稍后”的方法
- Android网络请求慢的时候,任意位置弹出加载中提示
- 梅花做的当打开页面时提示正在加载例子,很酷哦