看了半天 ,你页面的 'nogoogle1' 在那里?

解决方案 »

  1.   

    <tbody id="nousername">
    <tr>
    <th><label for="srchname">用户名</label></th>
    <td><input type="text" id="srchname" name="srchuname" size="45" maxlength="40" /></td>
    <td>用户名中可使用通配符 "<strong>*</strong>",如 <strong>*user*</strong></td>
    </tr>
    <tr>
    <th>&nbsp;</th>
    <td><button class="submit" type="submit" name="searchsubmit" value="true">搜索</button></td>
    <td>&nbsp;</td>
    </tr>
    </tbody>
    </table>
    <table summary="搜索选项" cellspacing="0" cellpadding="0">
    <thead>
    <tr>
    <th>搜索选项</th>
    <td>&nbsp;</td>
    </tr>
    </thead>
    <tr>
    <th>搜索方式</th>
    <td>
    <label><input type="radio" name="srchtype" value="google" checked="checked" onclick="javascript:clickgoogle(this.checked)">谷歌搜索</label>
    <label><input type="radio" name="srchtype" onclick="orderbyselect(1);clickgoogle(false)" value="title"   /> 标题搜索</label>
    <label><input type="radio" name="srchtype" onclick="orderbyselect(1);clickgoogle(false)" value="blog"  /> 搜索文集</label>
    <label><input type="radio" name="srchtype" onclick="orderbyselect(2);clickgoogle(false)" value="trade" /> 搜索商品</label>
    <label><input type="radio" name="srchtype" onclick="window.location=('search.php?srchtype=threadtype')" value="trade" /> 搜索分类信息</label>
    <label><input type="radio" name="srchtype" onclick="orderbyselect(1);clickgoogle(false)" value="fulltext"  /> 全文搜索</label>
    </td>
    </tr>
    <tbody id="nogoogle1">
    <tr>
    <td>主题范围</td>
    <td>
    <label><input type="radio" name="srchfilter" value="all" checked="checked" /> 全部主题</label>
    <label><input type="radio" name="srchfilter" value="digest" /> 精华主题</label>
    <label><input type="radio" name="srchfilter" value="top" /> 置顶主题</label>
    </td>
    </tr>
    </tbody>
    <tbody id="specialtr1">
    <tr>
    <td>特殊主题</td>
    <td>
    <label><input type="checkbox" name="special[]" value="1" /> 投票主题</label>
    <label><input type="checkbox" name="special[]" value="2" /> 商品主题</label>
    <label><input type="checkbox" name="special[]" value="3" /> 悬赏主题</label>
    <label><input type="checkbox" name="special[]" value="4" /> 活动主题</label>
    <label><input type="checkbox" name="special[]" value="5" /> 辩论主题</label>
    <label><input type="checkbox" name="special[]" value="6" /> 视频主题</label>
    </td>
    </tr>
    </tbody>
    <tbody id="specialtr2" style="display: none">
    <tr>
    <td>商品类别</td>
    <td>
    <select name="srchtypeid"><option value="">全部</option></select>
    </td>
    </tr>
    </tbody>
    <tbody id="nogoogle2">
    <tr>
    <th><label for="srchfrom">搜索时间</label></th>
    <td>
    <select id="srchfrom" name="srchfrom">
    <option value="0">全部时间</option>
    <option value="86400">1 天</option>
    <option value="172800">2 天</option>
    <option value="432000">1 周</option>
    <option value="1296000">1 个月</option>
    <option value="5184000">3 个月</option>
    <option value="8640000">6 个月</option>
    <option value="31536000">1 年</option>
    </select>
    <label><input type="radio" name="before" value="" checked="checked" /> 以内</label>
    <label><input type="radio" name="before" value="1" /> 以前</label>
    </td>
    </tr>
    <tr>
    <td><label for="orderby">排序类型</label></td>
    <td>
    <select id="orderby1" name="orderby">
    <option value="lastpost" selected="selected">回复时间</option>
    <option value="dateline">发布时间</option>
    <option value="replies">回复数量</option>
    <option value="views">浏览次数</option>
    </select>
    <select id="orderby2" name="orderby" style="position: absolute; display: none" disabled>
    <option value="dateline" selected="selected">发布时间</option>
    <option value="price">商品现价</option>
    <option value="expiration">剩余时间</option>
    </select>
    <label><input type="radio" name="ascdesc" value="asc" /> 按升序排列</label>
    <label><input type="radio" name="ascdesc" value="desc" checked="checked" /> 按降序排列</label>
    </td>
    </tr>
    <tr>
    <td valign="top"><label for="srchfid">搜索范围</label></td>
    <td>
    <select id="srchfid" name="srchfid[]" multiple="multiple" size="10" style="width: 26em;">
    <option value="all" selected="selected">搜索所有开放的版块</option>
    <option value="">&nbsp;</option>
    <optgroup label="K.YmSAR團隊"><option value="2">&nbsp; &gt; |聊天|</option><option value="3">&nbsp; &gt; |入隊|</option><option value="84">&nbsp; &nbsp; &nbsp; &gt; |踢出隊員|</option></optgroup><optgroup label="CS討論區"><option value="88">&nbsp; &gt; |技術|</option><option value="26">&nbsp; &gt; |下載|</option><option value="10">&nbsp; &gt; |短片|</option><option value="25">&nbsp; &gt; |貼圖|</option></optgroup><optgroup label="綜合討論或論壇交流"><option value="92">&nbsp; &gt; |音樂|</option><option value="105">&nbsp; &gt; |視頻|</option><option value="90">&nbsp; &gt; |水池|</option><option value="93">&nbsp; &gt; |美女|</option></optgroup><optgroup label="論壇"><option value="69">&nbsp; &gt; |意見||建議|</option><option value="8">&nbsp; &gt; |事務||聯盟|</option></optgroup> </select>
    </td>
    </tr>
    </tbody>以上为nogoogle1那些东西
      

  2.   

      checked="checked"
    这个在哪个radio里设置就默认是哪个...
      

  3.   

    我要javascript來解決
    不然來發問干嘛
      

  4.   

    <body onload="document.getElementsByName('srchtype')[1].checked=true">
      

  5.   

    謝謝你
    不過你的還不行,有點問題,但是在你基礎下添加了這個才能正常運作,呵呵
    <body onload="document.getElementsByName('srchtype')[1].checked=true;orderbyselect(1);clickgoogle(false)">