IE7窗口弹出问题
IE6下是没问题,但是装了IE7以后就出现问题了
test1.jsp
<body class="right-bg" onload="">
<div id="processBarMask" style="VISIBILITY:hidden;POSITION:absolute;left:100px;top:200px">
<TABLE border="0" bgcolor="#cccccc" cellspacing="0" cellpadding="0">
<TR>
<TD align="center">
<object type="text/x-scriptlet" id="objProcessBar"
style="z-index:0;" width="302" height="102"
data="<%=request.getContextPath()%>/queryPlan.html"></object>
</TD>
</TR>
</TABLE>
</div>
        。。
         <input type="button" value="查询" class="button" onclick="check(ljmmsActionForm,1);" />
        。。
</body>调用的js:function check(f,fg) {
。。
        processStart();
$("mmsaction").value = "query";
$("fg").value = fg;
f.submit();
}
function processStart(){
      with(document.all.processBarMask.style){                
          visibility = "visible";
      }
      document.all.processBarMask.focus();
}
queryPlan.html如下:<!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>
<style type="text/css">
.tborder {
BORDER-RIGHT: #333333 2px solid;
BORDER-TOP: #333333 2px solid;
BORDER-LEFT: #333333 2px solid;
BORDER-BOTTOM: #333333 2px solid;
border-collapse: collapse;
}.tborder1 {
BORDER-RIGHT: #cccccc 3px solid;
BORDER-BOTTOM: #cccccc 3px solid;
border-collapse: collapse;
}.dropShadow {
filter: dropshadow(color = #a9a9a9, offx = 2, offy = 2, positive = true)
}
</style>
<body>
<table>
    <tr>
<td style="FONT-SIZE: 15px; COLOR: #ffffff" align="center"
bgcolor="#3399ff" height="30">
</td>
</tr>
<tr height="8">
<td align="left" height="8">
<marquee
style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: black 1px solid; WIDTH: 280px; BORDER-BOTTOM: black 1px solid; HEIGHT: 8px"
scrollamount="4" scrolldelay="10" direction="right"
bgcolor="#ecf2ff">
<table height="8" cellspacing="0" cellpadding="0">
<tbody height="8">
<tr height="8">
<td width="8" bgcolor="#3399ff" height="8">&nbsp;

</td>
<td height="8">&nbsp;

</td>
<td width="8" bgcolor="#3399ff">&nbsp;

</td>
<td>&nbsp;

</td>
<td width="8" bgcolor="#3399ff">&nbsp;

</td>
<td>&nbsp;

</td>
<td width="8" bgcolor="#3399ff">&nbsp;

</td>
<td>&nbsp;

</td>
</tr>
</tbody>
</table>
</marquee>
</td>
</tr>
</table>
</body>
</html>上面程序最终呈现的就是每当点击"查询"按钮时,会通过processStart()这个js调用queryPlan.html这个html格式的弹出窗口,
这个程序在IE6下是可以,但是在IE7下始终是一个带红色"X"的白窗口,请教js高手,怎么改可以让那个html窗口弹出来..
先谢了....

解决方案 »

  1.   

    IE7有广告弹出屏蔽功能.你得调IE7的设置了,在隐私栏里下方.
      

  2.   

     with(document.all.processBarMask.style){                
              visibility = "visible"; 
          } 
          document.all.processBarMask.focus(); 

    写法不兼容用ID写法吧
      

  3.   

    <object type="text/x-scriptlet" id="objProcessBar"
    style="z-index:0;" width="302" height="102"
    data=" <%=request.getContextPath()%>/queryPlan.html"></object>你用到了控件?在IE7里安装一下该控件才行。看看你的data是否能够正确给出该控件的安装包!