<table width="120" bgcolor="#00ff00">
<tr onclick="javascript:document.all.t.click();">
<td width="80"></td>
<td>
<input type="radio" value="1" name="t">ttt
</td>
</tr>
</table>

解决方案 »

  1.   

    好象一JAVASCRIPT无关啊,都是HTML啊
      

  2.   

    可以用相同name,不同id,onclick="document.all.id_n.click()"
      

  3.   

    <HTML>
    <HEAD>
    <TITLE>Test Control System 3.0</TITLE>
    <META http-equiv=Content-Type content=text/html;charset=UTF-8>
    <LINK media=all href="../images/main.css" type=text/css rel=stylesheet>
    </HEAD>
    <script language="JavaScript" src="../js/common.js"></script>
     
    <BODY  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <form  name="listNews"  method="post"  action="">  
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TR> 
          <TD width="6%"> <TABLE cellSpacing=0 cellPadding=0 border=0>
              <TR> 
                <TD vAlign=center width=3 height=28><IMG height=28 alt="" src="../images/tabSelectedLeft.png" width=3 border=0></TD>
                <TD vAlign=center noWrap background=../images/tabSelectedBg.png>&nbsp;<A href="../TaskManage/TaskManage.htm">任务管理</A>&nbsp;</A>&nbsp;</TD>
                <TD vAlign=center width=3><IMG height=28 alt="" src="../images/tabSelectedRight.png" width=3 border=0></TD>
              </TR>
            </TABLE></TD>
          <TD width="10%" align="left" valign="bottom" noWrap>&nbsp;任务名称:核电站腐蚀数据管理系统</TD>
          <TD width="84%" align="right" valign="bottom" noWrap><input name="button23" type="button" class="button"    value="任务返回"> 
            <INPUT name="button2" type="button" class="button"  value="生成测试版"> 
            <INPUT name="button3" type="button" class="button"   value="提交测试报告"> 
            <INPUT name="button4" id="10" type="button" class="button"  onclick="javascript:showTestManage('inputformback')"  value="任务封版"></TD>
        </TR>
        <TR> 
          <TD class=tabox   colspan="3"  valign="top"> <table class=tbl cellspacing=1 cellpadding=3 width="100%" border=0>
              <tr> 
                <td colspan="10" height="30" align="center" nowrap><table width="100%" height="30" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td width="100%" align="center">测 试 管 理</td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <th nowrap width="5%">&nbsp;</th>
                <th nowrap width="5%">测试记录编号</th>
                <th nowrap width="5%">测试次数</th>
                <th nowrap  width="15%">提交测试时间</th>
                <th nowrap width="15%">要求修改完成时间</th>
                <th nowrap width="15%">实际修改完成时间</th>
                <th nowrap width="10%">修改误期得分</th>
                <th nowrap width="10%">测试人员姓名</th>
                <th nowrap  width="10%">是否封版前记录</th>
                <th nowrap  width="5%">返回</th>
              </TR>
       <tr  onmouseout="this.style.cursor='';this.className=''" onmouseover="this.className='outfont';this.style.cursor='hand'"   id="1">     
                <td  align="center" ><input type="radio" class="radio" id="4" checked name="radiobutton" value="radiobutton"></td>
                <td  align="center">C0000001</td>
                <td align="center">1</td>
                <td  align="center">2005-05-01 14:16:07</td>
                <td  align="center">2005-05-01 14:16:07</td>
                <td  align="center">2005-05-01 14:16:07</td>
                <td  align="center">-5</td>
                <td  align="center">RC</td>
                <td  align="center">是</td>
                <td  align="center">否</td>
              </tr>
       <tr onmouseout="this.style.cursor='';this.className=''" onmouseover="this.className='outfont';this.style.cursor='hand'"  "  id="2">           
               <td  align="center"><input type="radio" class="radio" id="1"  name="radiobutton" value="radiobutton"></td>
                <td  align="center">C0000001</td>
                <td align="center">2</td>
                <td  align="center">2005-05-01 14:16:07</td>
                <td  align="center">2005-05-01 14:16:07</td>
                <td  align="center">2005-05-01 14:16:07</td>
                <td  align="center">-5</td>
                <td  align="center">RC</td>
                <td  align="center">否</td>
                <td  align="center">是</td>
              </tr>
                 <tr onmouseout="this.style.cursor='';this.className=''" onmouseover="this.className='outfont';this.style.cursor='hand'" id="3">   
    <td  align="center"><input type="radio" class="radio"  id="2" name="radiobutton" value="radiobutton"></td>
                <td  align="center">C0000001</td>
                <td align="center">3</td>
                <td  align="center">2005-05-01 14:16:07</td>
                <td  align="center">2005-05-01 14:16:07</td>
                <td  align="center">2005-05-01 14:16:07</td>
                <td  align="center">-5</td>
                <td  align="center">RC</td>
                <td  align="center">是</td>
                <td  align="center">是</td>
              </tr>
               <tr onmouseout="this.style.cursor='';this.className=''" onmouseover="this.className='outfont';this.style.cursor='hand'" id="4">    
                <td  align="center"><input type="radio" class="radio" id="3" name="radiobutton" value="radiobutton"></td>
                <td  align="center">C0000001</td>
                <td align="center">4</td>
                <td  align="center">2005-05-01 14:16:07</td>
                <td  align="center">2005-05-01 14:16:07</td>
                <td  align="center">2005-05-01 14:16:07</td>
                <td  align="center">-5</td>
                <td  align="center">RC</td>
                <td  align="center">是</td>
                <td  align="center">是</td>
              </tr>
            </table>
         
    </div>
    </BODY></HTML>
      

  4.   

    <script>
    function check3(i)
    {
    document.getElementById("r"+i).checked="checked";
    }
    </script><table>
    <tr><td style="display:block" onclick="check3(1)"><input name="id1" id="r1" type="radio" value="">ddfdfd</td></tr>
    <tr><td style="display:block" onclick="check3(2)"><input name="id1" type="radio" id="r2" value="">sdfsdffsdfsf</td></tr>
    </table>