自己点右键查看源代码嘛<html><head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>TOM 论坛</title>
<style type=text/css>
.point{position:absolute;font-family:Webdings;background-color:#dddddd;font-size:12px;color:#000000;cursor:hand;}
</style>
<script language=javascript>
function changeWin(){
if(parent.forum.cols!="10,*")
{
parent.forum.cols="10,*";
document.all.menuSwitch.innerHTML="<font class=point>4</font>";
}
else
{
parent.forum.cols="127,*";
document.all.menuSwitch.innerHTML="<font class=point>3</font>";
}
}
</script>
</head><body topmargin=0 marginheight=0 leftmargin=0 marginwidth=0><table width=100% height=100% border=0 cellpadding=0 cellspacing=0>
<tr><td width=100%>
<iframe style="height:100%; width:100%; visibility:inherit;" marginwidth=0 marginheight=0 framespacing=0 frameborder=0 src="left.html"></iframe>
</td>
<td bgcolor=aaaaaa><img src="http://bbsimg.tom.com/bbs/images/shim.gif" width=1 height=1></td>
<td bgcolor=dddddd>
<table width=100% height=100% border=0 cellpadding=0 cellspacing=0>
<tr><td height=1 onclick=changeWin()><img src="http://bbsimg.tom.com/bbs/images/shim.gif" width=10 height=1></td></tr>
<tr><td onclick=changeWin() height=100% id=menuSwitch><font class=point>3</font></td></tr>
</table>
</td>
</tr>
</table></body></html>

解决方案 »

  1.   

    <style>
    .SwitchClass{color:black;cursor:hand;font-family:webdings;font-size:9pt}
    </style>
    <body>
    <script language="javascript">
    function SwitchMenuStatus()
    {
    if(SwitchMenu.innerText==3)
    {
    SwitchMenu.innerText=4;
    document.all("Menu").style.display="none";
    }
    else
    {
    SwitchMenu.innerText=3;
    document.all("Menu").style.display="";
    }
    }
    function OpenMenu()
    {
    if(SwitchMenu.innerText==4)
    {
    SwitchMenu.innerText=3;
    document.all("Menu").style.display="";
    }
    else
    {
    SwitchMenu.innerText=3;
    document.all("Menu").style.display="";
    }
    }</script>
    <table width="100%" border="1" cellpadding="3" cellspacing="0" height="100%" bordercolor="#EEEEEE" bordercolordark="#FFFFFF" bordercolorlight="#999999">  
      <tr>
        <td id=Menu name="Menu" vAlign=top align=left>
          <iframe src="about:blank" style="height:100%;visibility:inherit;width:100" border="0" frameborder=0></iframe>
        </td>         
        <td width="5" height="100%" onmouseover="OpenMenu();">
          <table border=0 cellPadding=0 cellSpacing=0>
            <tr> 
      <td style="height: 100%" valign=middle onclick="SwitchMenuStatus();">
                <span class=SwitchClass id=SwitchMenu title="关闭/打开菜单">3</span>
              </td>
            </tr>
          </table>
        </td>
        <td id=Home name="Home" vAlign=top align=left width="100%">
          <iframe src="about:blank" style="height:100%;visibility:inherit;width:100%" border="0" frameborder=0></iframe>
        </td>
      <tr>
    </table>