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頁面時,將會先出現請等待的畫面,然後當下一個頁面在服務端生成後傳到客戶端,客戶端才顯示下一個頁面.這樣增加可介面的友好性.
等待的畫面如下
查看全文
相关阅读:
DFS
离散化
前缀和&差分
数组运用_1-15 选择题
数组运用_1-13 选择题
数组运用_1-11 选择题
数组运用_1-9 选择题
数组运用_1-4 编程练习
数组初始_2-22编程练习
poj 3669 bfs(这道题隐藏着一个大坑)
原文地址:https://www.cnblogs.com/oisiv/p/112994.html
最新文章
按月匹配天数
checkbox 赋值给js 变量
Jquery操作复选框(CheckBox)的取值赋值实现代码
linux下的mysql安装和配置
ubuntu 13.04 server安装Oracle XE 11G R2
mysql基本操作
JAVA中的验证码生成
oc基础-oc中单个对象的内存管理的一些基础知识
oc的三大特征
oc基础-多态
热门文章
oc基础-继承和super关键字
oc基础-self关键字的使用
oc基础-对象方法和类方法的区别
邻接表树和图的基于链表的DFS
散列+哈希
堆排序
并查集
trie
kmp
BFS八数码
Copyright © 2011-2022 走看看