zoukankan
html css js c++ java
asp.net大页面载入时以进度条显示zt
protected
void
Page_Load(
object
sender, EventArgs e)
{
Response.Write(
"
<div id='mydiv' >
"
);
Response.Write(
"
_
"
);
Response.Write(
"
</div>
"
);
Response.Write(
"
<script>mydiv.innerText = '';</script>
"
);
Response.Write(
"
<script language=javascript>;
"
);
Response.Write(
"
var dots = 0;var dotmax = 10;function ShowWait()
"
);
Response.Write(
"
{var output; output = '正在装载页面';dots++;if(dots>=dotmax)dots=1;
"
);
Response.Write(
"
for(var x = 0;x < dots;x++){output += '·';}mydiv.innerText = output;}
"
);
Response.Write(
"
function StartShowWait(){mydiv.style.visibility = 'visible';
"
);
Response.Write(
"
window.setInterval('ShowWait()',1000);}
"
);
Response.Write(
"
function HideWait(){mydiv.style.visibility = 'hidden';
"
);
Response.Write(
"
window.clearInterval();}
"
);
Response.Write(
"
StartShowWait();</script>
"
);
Response.Flush();
Thread.Sleep(
4000
);
//
}
查看全文
相关阅读:
微信小程序开发 —— 一些小的注意点
C# —— 继承
JavaScript —— 判断一个对象是否为空
SQLServer——事务
创建存储过程
(转)从开发小白到音视频专家
(转载)从零开始学习音视频编程技术(一) 视频格式讲解
(转载)如何正确的阅读FFmpeg官网提供的资料
(转载)音频编解码基础(wav/aac/pcma/pcmu)
(转载)语音编解码过程概述
原文地址:https://www.cnblogs.com/ma/p/726370.html
最新文章
grub
SqlServer 事务日志已满
杂谈
jQuery Ajax 请求报长度过长的错误:Error during serialization or deserialization using the JSON JavaScriptSerializer
找的网上的js日期格式化问题出错了显示 一堆 NaN的东西
25_android下文件访问的权限
21_测试相关概念
09_platform-tools简介&常见adb指令
常用网址说明
在Web中实现C/S模式的Tab
热门文章
php接口post提交方法 。
JS 点击按钮后弹出遮罩层,有关闭按钮
phpexcel 导入导出
年轻时最需要学会的5项技能
php json中文处理方法,请json更懂中文
github学习之旅(五)—— 本地仓库与远程仓库进行关联
github学习之旅(四)—— 工作区、暂存区、仓库区
github学习之旅(三) —— git设置用户名和邮箱
github学习之旅(二) —— git文件操作基础命令
github学习之旅(一) —— git工具的下载和安装
Copyright © 2011-2022 走看看