父页面关闭子页面问题..帮我看一下..10分钟等待.
主要是弹出的 页面点关闭 无法关闭 我不知道是不是页面机制的问题..请朋友帮我看看...谢谢
页面:
<script language= "JavaScript " type= "text/JavaScript ">
//消息提醒机制
function reply(data){
//判断数据的状态 如果有新的数据则调用ringPlay();
if(data !=0){
popmsg(data);
}
}
function check(){
//调用系统的查询数据
// QueryMessageAjaxHelper.getNewDocPub(reply);
var data = 10
popmsg(data);
//设置循环时间
setTimeout( "check() ",6000);
}
//根据不同的参数调用页面的声音提醒文件
function ringPlay(){
document.getElementById( "ring ").play();
}
function closeDiv(){
//document.getElementById( 'eMeng ').style.visibility= 'hidden ';
//if(objTimer) window.clearInterval(objTimer)
alert( "aaaa ");
}
var oPopup = window.createPopup();
var popTop=50;
function popmsg(msgstr){
var winstr = " ";
winstr+= " <TABLE style=\ "BORDER-TOP: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid\ " cellSpacing=0 cellPadding=0 width=\ "100%\ " bgColor=#cfdef4 border=0> ";
winstr+= " <TBODY> ";
winstr+= " <TR> ";
winstr+= " <TD style=\ "FONT-SIZE: 12px; BACKGROUND-IMAGE: url(msgTopBg.gif); COLOR: #0f2c8c\ " width=30 height=24> </TD> ";
winstr+= " <TD style=\ "FONT-WEIGHT: normal; FONT-SIZE: 12px; BACKGROUND-IMAGE: url(msgTopBg.gif); COLOR: #1f336b; PADDING-TOP: 4px;PADDING-left: 4px \ " vAlign=center width=\ "100%\ "> 公告提示: </TD> ";
winstr+= " <TD style=\ "BACKGROUND-IMAGE: url(msgTopBg.gif); PADDING-TOP: 2px;PADDING-right:2px\ " vAlign=center align=right width=19> <span title=关闭 style=\ "CURSOR: hand;color:red;font-size:12px;font-weight:bold;margin-right:4px;\ " onclick=closeDiv()> × </span> </TD> ";
winstr+= " </TR> ";
winstr+= " <TR> ";
winstr+= " <TD style=\ "PADDING-RIGHT: 1px; BACKGROUND-IMAGE: url(1msgBottomBg.jpg); PADDING-BOTTOM: 1px\ " colSpan=3 height=96> ";
winstr+= " <DIV style=\ "BORDER-RIGHT: #b9c9ef 1px solid; PADDING-RIGHT: 13px; BORDER-TOP: #728eb8 1px solid; PADDING-LEFT: 13px; FONT-SIZE: 12px; PADDING-BOTTOM: 13px; BORDER-LEFT: #728eb8 1px solid; &nb