你的代码没有什么问题, 只不过页面里缺少一个 id=mnuList 的控件, 且页面不在框架中而已.
当然这里还有点不太规范: switchPoint.innerText=="3"

解决方案 »

  1.   

    是可以用地呀
    只是有两个对象找页面中没有,注释了<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>
      

  2.   

    两位说得没错,程序没有问题,id=mnuList 在包含文件<!--#include file="online.asp"-->中;
    我想在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>