当前位置: 代码迷 >> JavaScript >> jsp Frame 中页面置顶展示与div的显示与隐藏
  详细解决方案

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

热度:44   发布时间:2012-11-06 14:07:00.0
jsp Frame 中页面置顶显示与div的显示与隐藏
//页面置顶显示
if(window.self != window.top) {
        window.top.location = window.self.location;
}

//刷新上层页面
window.parent.main.document.location.reload();

//显示div

function   fnBlock(){
    document.getElementById("showMsg").style.display="block";
}

//隐藏div

function   fnNone(){
    document.getElementById("showMsg").style.display="none";
}

//4000毫秒后隐藏

function   timeControl(){

    window.setInterval("fnNone()",4000);

}

  相关解决方案