你的代码没有什么问题, 只不过页面里缺少一个 id=mnuList 的控件, 且页面不在框架中而已.
当然这里还有点不太规范: switchPoint.innerText=="3"
当然这里还有点不太规范: switchPoint.innerText=="3"
解决方案 »
- 超级着急!大神,怎么把这段json用js循环取生成带有链接的children子项html效果(如json数据下面)
- 当焦点离开时,怎样设置输入框内容?
- 求高手指教,onsubmit()在浏览器中的兼容问题
- 请问 ext Grid 如何实现 无刷新 读取数据 ??
- 大虾帮忙啊?怎样在js中传递参数
- 在OPERA浏览器里,如何在点右上角X关闭前,做一些事情
- 手机wap网站
- 大家来帮我看看这个简单的问题啊.在线等.
- 求助,jquery ui 中,tabs嵌套时发生样式错误问题
- 谁能写出如WINDOW中查找文件中按日期查询时选日期的下拉日历?我知道是用层,但具体怎样?
- 这样控制文本框输入数字开户输入法时不行
- 如何实现防止网页刷新以及后退???
只是有两个对象找页面中没有,注释了<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<SCRIPT language="javascript">
function switchSysBar()
{
if (switchPoint.innerText==3)
{
switchPoint.innerText=4
setTimeout("window.location.reload()",12000);
// document.all("mnuList").style.display="none"
// top.content.cols="16,*"
}
else
{
switchPoint.innerText=3
// document.all("mnuList").style.display=""
// top.content.cols="160,*"
}
}
</SCRIPT>
</HEAD><BODY leftMargin="0" topMargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF" oncontextmenu=self.event.returnValue=false onselectstart="return false"><table cellspacing=0 cellpadding=0 border=0 height="100%" width="160" align="center">
<tr>
<td valign="top">
</td>
<td width="16" bgcolor=#FFFFFF background="images/menu_bg_02.gif">
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td width="10" align=middle valign=center>
<span class=np id=switchPoint onClick=switchSysBar() title="打开/关闭导航">3</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</BODY></HTML>
我想在online.asp <js>中使用
if (switchPoint.innerText==3){setTimeout("window.location.reload()",120000);}
来判断是否刷新?
如上就不行了, 怎么纠正?
---online.asp----<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="mmc.css">
<title>ONLINE</title>
<SCRIPT language=JavaScript>
function killErrors() {
return true;
}
window.onerror = killErrors;
//if (switchPoint.innerText==3){setTimeout("window.location.reload()",120000);//}
</SCRIPT></head><SCRIPT LANGUAGE="JavaScript">
function sendcall(url)
{
window.open(url,"","height=200,width=440,status=no,toolbar=no,menubar=no,scrollbars=yes,location=no,resizable=no,left=200px,top=200px");
}
</script><body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF" >
</body></html>