看到許多網站使用免費站內搜尋工具,研究後的心得報告...自己使用也推薦給同好!
可將此Code copy至您的網頁,將domainroote改為您的root網址即可!
<script type="text/javascript">
// Google Internal Site Search script- By JavaScriptKit.com
//(http://www.javascriptkit.com)
// For this and over 400+ free scripts, visit JavaScript
// Kit- http://www.javascriptkit.com/
// This notice must stay intact for use
//Enter domain of site to search.
var domainroot="ithelp.ithome.com.tw"
function Gsitesearch(curobj){
curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
}
</script>
<form action="http://www.google.com/search" method="get" onSubmit="Gsitesearch(this)">
<p>站內搜尋:<br />
<input name="q" type="hidden" />
<input name="qfront" type="text" style="width: 150px" /> <input type="submit" value="搜尋" /></p>
</form>