alter("success!")
  ^^^              你自己写错了单词了
alert("success!")

解决方案 »

  1.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <LINK href="style.css" type=text/css rel=stylesheet>
    <title>无标题文档</title>
    </head>
    <body>
    <table align=center border='1' cellspacing='0' cellpadding='2' >
    <tr >
    <td id=join1 onmouseup="Turn('join2')" style="cursor:hand">显示111</td>
    <td id=join2>显示222</td>
    </tr>
    </table>
    </body>
    </html>
    <script language="javascript">
    function Turn(mm)
    {
    var test=document.all(mm)
    test.style.cursor="hand"
    test.onclick=start;}
    function start()
    {
    alert("success!")
    }
    </script>