jsp Frame 中页面置顶显示与div的显示与隐藏
//页面置顶显示if(window.self != window.top) { window.top.location = window.self.location;}//刷新上层页面window.parent.main.document.location.reload();//显示divfunction fnBlock(){ document.getElementById("showMsg").style.display="block";}//隐藏divfunction fnNone(){ document.getElementById("showMsg").style.display="none";}//4000毫秒后隐藏function timeControl(){ window.setInterval("fnNone()",4000);}