Home > Web Front-end > JS Tutorial > js loading loading effect implementation code_javascript skills

js loading loading effect implementation code_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 18:41:21
Original
1738 people have browsed it
复制代码 代码如下:

protected void Page_Load(object sender, EventArgs e)
{
ShowLoading();
System.Threading.Thread.Sleep(10000);
ClientScript.RegisterClientScriptBlock(typeof(string), "", "<script>document.body.onload=function(){removeLoadMsg();}</script>");
}

///
/// 显示页面正在加载中效果
///

public void ShowLoading()
{
StringBuilder s = new StringBuilder();
s.Append(" n");
s.Append("n");
s.Append("
n");
s.Append("
n");
s.Append("
页面正在加载中...
n");
s.Append("
n");
s.Append("
n ");
//HttpContext.Current.Response.Write(s.ToString());
HttpContext.Current.Response.Write(s.ToString());
//HttpContext.Current.Response.Flush();
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
javascript - How to use loading in vue action
From 1970-01-01 08:00:00
0
0
0
angular.js - angularJs loading effect
From 1970-01-01 08:00:00
0
0
0
javascript - react infinite lazy loading
From 1970-01-01 08:00:00
0
0
0
Video loading error
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template