本帖最后由 linzhisong 于 2010-02-20 13:29:47 编辑

解决方案 »

  1.   

    试试
    window.location.reload ---> location.href
      

  2.   

    document.all使用  document.getElementById
      

  3.   

    document.getElementsByName("keywordtype")[0].checked
      

  4.   

    <script language="javascript">
    function openform()
    {
      if (document.all.keywordtype[1].checked)
      {
        window.location=('/QQHappyFarmInfo-' + qryQQID.value + '.aspx');
      }
      else
      {
        window.location=('/QQHappyFarmInfo-0-' + qryQQID.value + '.aspx');
      }
    }
    </script><table cellSpacing="0" cellPadding="0" summary="搜索"  class="formtable">
    <tbody>
    <tr id="divkeyword">
    <td> <input name="keywordtype"  type="radio" value="0" checked title=""  />QQ号码
    <input  name="keywordtype" type="radio" value="1" title="" />农场编号(FarmID) </td>
    <td> <input name="qryQQID" type="text" id="qryQQID" size="20" class="txt" /> </td>
    <td align="left"> <button name="submit" onclick="openform();void(0);" id="Button1">查询 </button> </td>
    <td width="500">*查询即可上排行榜,排名每天更新 </td></tr>
    </tbody>
    </table>
      

  5.   

    document.all
    document.all只有ie支持的
      

  6.   

    document.all
    document.all只有ie支持的