如何讓上面兩個搜尋連在一起?
- 懸壺子
- 系統管理員
- 主題中的帖子: 11
- 文章: 33489
- 註冊時間: 2001-10-05 , 10:10
- 個人狀態: 道骨學習佛心..^^..
- 貼心留言: 氣候不穩
- 性別: 公仔
- 來自: 黃金故鄉
- 聯繫:
代碼: 選擇全部
<td align="right">
<!-- Begin Openfind Search Form -->
<script language='JavaScript'>
<!--
function OpenfindSubmit(thisForm)
{
if ( thisForm.query.value == '' ) {
alert('請先輸入欲查詢的字串!');
thisForm.query.focus();
return false;
} else {
if ( thisForm.ServiceID.selectedIndex == 1 ) { // TW webpage search
thisForm.action = 'http://www.openfind.com.tw/cgi-bin/tw/webquery';
} else if ( thisForm.ServiceID.selectedIndex == 2 ) { // WNS search
thisForm.action = 'http://se1.openfind.com.tw/cgi-bin/URL/wns';
} else if ( thisForm.ServiceID.selectedIndex == 3 ) { // TW BBS search
thisForm.action = 'http://bbs.openfind.com.tw/cgi-bin/qsearch';
thisForm.QUERY.value = thisForm.query.value;
} else if ( thisForm.ServiceID.selectedIndex == 4 ) { // TW News search
thisForm.action = 'http://news.openfind.com.tw/cgi-bin/WebNews/iwn';
} else if ( thisForm.ServiceID.selectedIndex == 5 ) { // Image search
thisForm.type.value = 'image';
thisForm.action = 'http://mms.openfind.com.tw/cgi-bin/MMS/ecgi';
} else if ( thisForm.ServiceID.selectedIndex == 6 ) { // Audio search
thisForm.type.value = 'audio';
thisForm.action = 'http://mms.openfind.com.tw/cgi-bin/MMS/ecgi';
} else if ( thisForm.ServiceID.selectedIndex == 7 ) { // Software search
thisForm.type.value = 'software';
thisForm.action = 'http://mms.openfind.com.tw/cgi-bin/MMS/ecgi';
} else if ( thisForm.ServiceID.selectedIndex == 8 ) { // Literature search
thisForm.type.value = 'literature';
thisForm.action = 'http://mms.openfind.com.tw/cgi-bin/MMS/ecgi';
} else { // default, TW CD search
thisForm.action = 'http://cd.openfind.com.tw/cgi-bin/CD/SearchCd.exe';
thisForm.Query.value = thisForm.query.value;
}
return true;
}
}
//-->
</script>
<FORM name=Openfind onsubmit='return OpenfindSubmit(this)' method=get target=_blank>
<INPUT type=hidden name=Function value=search>
<INPUT type=hidden name=redirect value=ON>
<INPUT type=hidden name=type value=image>
<INPUT type=hidden name=Query>
<INPUT type=hidden name=QUERY>
<a href="http://www.openfind.com.tw/" target="_blank">OpenFind:</a>
<input type='text' class="mainoption" name='query' size='10'>
<select name='ServiceID' class="mainoption">
<option value='0' selected>分類</option>
<option value='1'>網頁</option>
<option value='2'>網?}</option>
<option value='3'>BBS</option>
<option value='4'>新聞</option>
<option value='5'>圖片</option>
<option value='6'>音樂</option>
<option value='7'>軟體</option>
<option value='8'>文件</option>
</SELECT>
<input type="submit" class="mainoption" value="搜尋" onclick="search">
</FORM>
<!-- End openfind Search Form --> <form method="get" action="http://search.sina.com.tw/sn-bin/search.cgi" target="_new">
<select name="Area">
<option value="GOOGLE" selected>Google中文網頁
<option value="YAHOO">雅虎中文
\n<option value="OPENFIND">Openfind
<option value="YAM">蕃薯藤
<option value="PCHOME">PCHome
<option value="All">Sina網站搜尋
<option value="ThirdParty">Sina網頁搜尋
<option value="News">Sina新聞搜尋</select>
<input name="Keywords" size="15" class="mainoption">
<input type="submit" value="搜尋" class="mainoption" name="submit2">
</form></td>
謝謝
最後由 懸壺子 於 2006-02-22 , 7:53 編輯,總共編輯了 1 次。