<!--Google站内搜索开始-->
<script type="text/javascript">
function googlesearch () {
var wq=document.getElementsByName("wq")[0].value;
var link="http://www.google.com/search?
domains=www.softrich.com&sitesearch=www.softrich.com&q="+wq;
window.open(link); }
</script>
<input type="text" name="wq"/><input type="submit" onclick="javascript:googlesearch()"
value="Google 搜索" />
<!--Google站内搜索结束-->
PS:使用时只需要将代码里的"www.softrich.com"替换成你的网址即可。