怎样实现两种搜索,站内和站外,帮忙该该,选不同选相实现不同搜索
<html>
<body>
<!-- SiteSearch Google -->
<form method=get action="http://www.google.com/search">
<table bgcolor="#FFFFFF"><tr><td>
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_40wht.gif"
border="0" alt="Google"></a>
</td>
<td>
<input type=text name=q size=31 maxlength=255 value="">
<input type=hidden name=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<input type=hidden name=hl value=zh-CN>
<input type=submit name=btnG value="Google 搜索">
<font size=-1>
<input type=hidden name=domains value="YOUR DOMAIN NAME"><br>
<input type=radio name=sitesearch value=""> 搜索WWW
<input type=radio name=sitesearch value="YOUR DOMAIN NAME" checked> 搜索YOUR DOMAIN NAME
</font>
</td></tr></table>
</form>
<!-- SiteSearch Google -->
</body></html>
參考答案:<input type=hidden name=domains value="YOUR DOMAIN NAME"><br>
<input type=radio name=sitesearch value=""> 搜索WWW
<input type=radio name=sitesearch value="YOUR DOMAIN NAME" checked>
将其中的"YOUR DOMAIN NAME",必为您自己的域名就行了.
形如“”