在用户登录成功后,显示是否有未读公告,action调转一直显示在整个iframe中,业务需求是现实在iframe的main中
home.jsp
<body οnlοad="showCss();">
<div id="iframeFather" class="maskdiv"></div>
<iframe id="showIFrame" src="${pageContext.request.contextPath}/jsp/core/body.jsp" width="100%" frameborder="0"></iframe>
</body>
<script type="text/javascript">
init();
var cou =${cou};
if(cou>0){
ism.question('有未读公告!!',function(){
document.getElementById('showIFrame').contentWindow.document.getElementById('main').src = g_fmtUrl('/notice/search/doSearchAd.do',true);
});
}
</script>
<frameset rows="100,*,20" cols="*" framespacing="0" frameborder="no" border="0">
<frame src="${pageContext.request.contextPath}/jsp/core/frame_top.jsp" scrolling="no" noresize>
<frameset rows="*" cols="220,9,1%" framespacing="0" border="0" id="topwin">
<frame src="${pageContext.request.contextPath}/jsp/core/frame_left.jsp" name="left" scrolling=auto noresize id="left" target="main">
<frame src="${pageContext.request.contextPath}/jsp/core/frame_center.jsp" name="middle" scrolling="no" noresize id="middle">
<frame src="${pageContext.request.contextPath}/jsp/core/frame_main.jsp" name="main" id="main" scrolling="auto">
</frameset>
<frame src="${pageContext.request.contextPath}/jsp/core/frame_foot.jsp" scrolling="no" noresize>
</frameset>