父子页面问题/。/。。没有解决完。。
在弹出公告框里面点击 "察看公告 " 执行 test(){} 方法
如何 能 执行 实在是不会了...
页面代码:
<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 ");
oPopup.hide();
}
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= 'parent.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