首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

jsp Frame 中页面置顶展示与div的显示与隐藏

2012-11-06 
jsp Frame 中页面置顶显示与div的显示与隐藏//页面置顶显示if(window.self ! window.top) {window.top.lo

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);}

热点排行