如题
代码是:
<html>
<head>
<title>无标题文档</title>
<script>function show(){
document.all( "div1" ).style.display="none";
document.all( "div2" ).style.display="";

}function hlep(){
document.all( "div1" ).style.display="";
document.all( "div2" ).style.display="none";

}
</script>
</head><body>
<form>
<table><tr><td>
<div id="div1" align="center">
<table width="100%"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td align="right" valign="top">1111
            <input name="帮助" value="帮助" type="button" onMouseUp="show()"></td>
        </tr>
      </table>
</div><div id="div2" style="display:none" align="center">
<table width="100%" height="700"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td align="right" valign="top">2222<input name="" type="button" value="返回" onMouseUp="hlep()"></td>
        </tr>
      </table>
  </div>
  </td></tr></table>
  </form>
</body>
</html>

解决方案 »

  1.   

    确实挺奇怪  FF下没问题换下面的代码就没问题了<html> 
    <head> 
    <title> 无标题文档 </title> 
    <script> function show(){ 
    document.all("div1").style.display="none"; 
    document.all("div2").style.display=""; 
    } function hlep(){ 
    document.all("div1").style.display=""; 
    document.all("div2").style.display="none"; 

    </script> 
    </head> <body> 
    <form> 
    <table> <tr> <td> 
    <div id="div1" align="center"> 
    <table width="100%"   border="0" cellpadding="0" cellspacing="0"> 
          <tr> 
            <td align="right" valign="top"> 1111 
            <input name="帮助" value="帮助" type="button" onclick="show()"> </td> 
          </tr> 
        </table> 
    </div> <div id="div2" style="display:none" align="center"> 
    <table width="100%" height="700"   border="0" cellpadding="0" cellspacing="0"> 
          <tr> 
            <td align="right" valign="top"> 2222 
    <input name="" type="button" value="返回" onclick="hlep()"> </td> 
          </tr> 
        </table> 
      </div> 
      </td> </tr> </table> 
      </form> 
    </body> 
    </html> 
      

  2.   

    lz 我把你的代码原封不动的拷贝下来放到dw8里试了,没有发现问题呀
    是不是一点帮助就显示2222,点返回就显示1111嘛?
    我这里看是好的哟
    我是ie7
      

  3.   

    我用是 ie6 楼主的问题是 帮助就显示2222 此时除了 返回 其他的点不了  可能是IE6的BUG
      

  4.   

    我用的 ie6   好像沒什么不正常的現象。
    //--------------點擊按鈕顯示
    點擊show(): 2222 [返回] ,有 滾動條(因為div2里面的table height="700" )
    點擊hlep(): 1111 [帮助] ,無 滾動條