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頁面時,將會先出現請等待的畫面,然後當下一個頁面在服務端生成後傳到客戶端,客戶端才顯示下一個頁面.這樣增加可介面的友好性.
等待的畫面如下
查看全文
相关阅读:
大话设计模式--建造者模式 Builder -- C++实现实例
HTTP状态码大全
安装mongodb卡顿
sublime_win配置
sublime__最全面的 Sublime Text 使用指南
sublime text 3搭建python 的ide
spring boot与 spring.factories
自定义xml spring bean
统计分析: 跨库多表join
java基础
原文地址:https://www.cnblogs.com/oisiv/p/112994.html
最新文章
PCB常用单位转换 mil 英尺
Cadence SPB 16. 6 安装步骤
笔记03 wpf 在MVVM模式下怎样在Viewmodel里面获得view的控件对象
笔记03 MVVM 开发的几种模式(WPF)
笔记02
笔记01
WPF03(样式)
WPF02(concept)
WPF01(xaml)
Android SDK Manager国内无法更新的解决方案
热门文章
笔记
大话设计模式--组合模式 Composite -- C++实现实例
大话设计模式--备忘录 Memento -- C++实现实例
大话设计模式--适配器模式 Adapter -- C++实现实例
大话设计模式--状态模式 State -- C++实现实例
发布管理软件
android 真心话大冒险 摇色子
作为一个新人,怎样学习嵌入式Linux
大话设计模式--抽象工厂模式 Abstract Factory -- C++实现实例
大话设计模式--观察者模式 Observer -- C++ 实现实例
Copyright © 2011-2022 走看看