你都没有写click事件,响应什么啊

解决方案 »

  1.   

    这样写<head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>新建网页 1</title>
    <style>
    .select{background-color:#000080;cursor:hand;color:#ffffff}
    .noselect{background-color:#ffffff;cursor:hand;color:#111111}
    </style>
    <script>
    var temp;
    function selecttable(table)
    {
     if (temp==null)
     {
      temp=table;
      temp.className="select";
     }
     else
     {
      temp.className="noselect";
      temp=table;
      temp.className="select";
     }
    }</script>
    </head>
    <body>
    <table onclick="alert(event.srcElement.innerHTML)" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="79%" id="table1" ></table>
    </body>
      

  2.   

    newtr.onclick=function() {parent.iframe1.selecttable(this)};这句不就是我给动态添加的行的事件嘛.
      

  3.   

    zltostem(尘寞) 
    不行啊,
    只有新加入的可以高亮显示,
    选择上面的就不可以再高亮显示了.
    不知道是什么原因,帮忙看看吧.
      

  4.   

    windows 2003
    ie6.0.3790.0
    测试可以
      

  5.   

    会不会是版本的问题,还请各位再帮我测一测,得到一个准确的结果,一定给分的.
    我用的windows 2000 server 
    ie6.0.2800.1106