zoukankan
html css js c++ java
使用javascript在html頁面中實現進程執行中,請等待的功能
<
center
>
<
div style
=
"
height:60;280;display:none;background-color:#ffffdd;border-style:outset;border-2;position:relative;top:-20;z-index:999;cursor:wait
"
id
=
"
showmes
"
valign
=
"
middle
"
>
<
table border
=
0
height
=
100
%
width
=
100
%>
<
tr
>
<
td align
=
'middle' width
=
35
%>
<
img src
=
'..
/
Images
/
cursor_1.gif' border
=
'
0
' WIDTH
=
'
32
' HEIGHT
=
'
32
'
>
</
td
>
<
td valign
=
'middle'
>
正在查詢中
</
td
>
</
tr
>
</
table
>
</
div
>
</
center
>
上敘代碼的作用是在打開其他頁面前用來顯示進程正在執行,請用戶等待的畫面.具體的使用如下
showmes.style.display
=
""
;
var
today
=
new
Date();
window.showModalDialog(
"
aststoreInOutrpt.asp?now=
"
+
today,
null
,
"
status=0;dialogHeight=
"
+
window.screen.availHeight
+
"
px;dialogwidth=1500 px;dialogtop=0;dialogleft=0;help=0
"
);
showmes.style.display
=
"
none
"
;
這樣在打開aststoreinoutrpt.asp頁面時,將會先出現請等待的畫面,然後當下一個頁面在服務端生成後傳到客戶端,客戶端才顯示下一個頁面.這樣增加可介面的友好性.
等待的畫面如下
查看全文
相关阅读:
MySQL 01-MySQL简介
什么是数据库
系统安装05-Xenserver 7.0安装
系统安装04-VMware VCSA 6.5 系统安装
poj--2516--Minimum Cost(最小费用流)
hdoj--1533--Going Home(最小费用流)
hdoj--5621--KK's Point(简单数学)
hdoj--5620--KK's Steel(斐波那契数)
nyoj--635--Oh, my goddess(dfs)
poj--2236--棋盘问题(dfs)
原文地址:https://www.cnblogs.com/oisiv/p/112994.html
最新文章
Iptables 防火墙
Firewalld 防火墙
JumpServer堡垒机
FTP
ES6系列---【ES6中利用解构赋值实现ajax封装】
ES6系列---【ES6新语法】
jQuery系列---【jQuery中ajax封装】
jQuery系列---【jQuery中的动画】
jQuery系列---【jQuery元素宽高 节点 事件】
jQuery系列---【jQuery操作元素】
热门文章
jQuery系列---【jQuery选择器】
javaScript系列---【移动端事件--touch.js知识点总结】
javaScript系列---【轮播图】
javaScript系列---【闭包】
IPv6 04-CentOS开启IPv6
IPv6 03-IPv6路由协议
IPv6 02-IPv6地址配置
IPv6 01-IPv6简介
MySQL 03-MySQL安装-直接解压二进制文件(CentOS6)
MySQL 02-yum安装mariadb(CentOS7)
Copyright © 2011-2022 走看看