比如弹出一个页面(类似alert,但没有确定按钮),显示“正在保存数据,请稍等!”。这个时候用户不能操作页面,直到保存数据完毕后才允许用户操作。
解决方案 »
- BODY ONLOAD里设置的JS脚本无效
- 两个jsp页面的设计实现用户的先注册后登陆并提示是否用户已存在
- 我是菜鸟。。求大神帮忙做下用java做一个页面
- 求去掉html标签的正则表达式
- asp中引用js变量???????????
- 在线等>>>如何动态向一已知函数中填入语句
- 怎样得到现在时间,就像vbscript里的date()一样
- 用子窗口里<iframe>中的页面的按钮关闭子窗口时,如何回传一个值给父窗口???
- 给tr标签里的<Lable>标签内容添加 符号
- 如何实现使用鼠标将事件拖到日历中,在日历的某一天上的释放鼠标,获取事件所在日历的日期,精确到天。关于拖动事件的过程已经能够实现,关键是如何获取日期
- alert 关闭问题
- js获取griderview的值
<!--
html,body {height:100%; margin:0px; font-size:12px;}.mydiv {
background-color: #f9fff6;
border: 1px solid #009900;
text-align: center;
line-height: 25px;
font-size: 13px;
font-weight: bold;
z-index:99;
width: 300px;
height: 50px;
left:50%;/*FF IE7*/
top:50%;/*FF IE7*/margin-left:-150px!important;/*FF IE7 half of its width */
margin-top:-60px!important;/*FF IE7 half of its height*/margin-top:0px;position:fixed!important;/*FF IE7*/
position:absolute;/*IE6*/_top: expression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ?
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/}
.bg {
background-color: #C2BEBF;
width: 100%;
height: 100%;
left:0;
top:0;/*FF IE7*/
filter:alpha(opacity=40);/*IE*/
opacity:0.4;/*FF*/
z-index:1;position:fixed!important;/*FF IE7*/
position:absolute;/*IE6*/_top: expression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ?
documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/}
-->
</style>
<script language="javascript" type="text/javascript">
function showDiv(){
if(document.all){
document.getElementById('bg').innerHTML = "<iframe style='width:100%;height:100%;left:0px;top:0px;position:absolute;filter:alpha(opacity=0);z-index:-1;border:0px'/>";
}
document.getElementById('popDiv').style.display='block';
document.getElementById('bg').style.display='block';
}function closeDiv(){
document.getElementById('popDiv').style.display='none';
document.getElementById('bg').style.display='none';
}</script>
<div id="popDiv" class="mydiv" style="display:none;">正在保存,请稍等..<br/>
<!--<a href="javascript:closeDiv()">close</a>--></div>
<div id="bg" class="bg" style="display:none;"></div><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title></head><body><input type="button" value="保存" onclick="showDiv()" /></body>
</html>
if(document.all)是什么意思?document.all代表什么?