google站内搜索代码
試用了一下google自定義搜索,功能確實(shí)很多,可以投放自己的adsense,還可以嵌入google Analytics 統(tǒng)計(jì)代碼,還可以自定義搜索結(jié)果頁面的外觀,還可以設(shè)置某些搜索結(jié)果置頂顯示,但是有二個缺點(diǎn)不得不提:
1? 搜索框的外觀實(shí)在是丑得可以了。我就不貼圖了,愿意感受一下的同學(xué)們自己去試用一下吧。
2 忘記了。。。
最近記憶力出問題了, 很多東西轉(zhuǎn)瞬即忘。
于是,不得不換一種形式的站內(nèi)搜索代碼了:
37 <!–google–>
38 <div style=”float:left;margin-left:20px;margin-top:10px !important; margin-top:5px;”>
39 <form action=”http://www.google.cn/search” method=”get” target=_blank>
40 <input name=”sitesearch” value=”zhaokunyao.com” type=”hidden”>
41 <input name=”hl” value=”zh-CN” type=”hidden”>
42 <input name=”ie” value=”GB2312″ type=”hidden”>
43 <input size=”25″ name=”q” id=”query” type=”text” >
44 <input name=”Search” value=”Google搜索” attr=”value” type=”submit”><br>
45 <input name=s onClick=”this.form.sitesearch.value=”;” type=radio> 互聯(lián)網(wǎng)
46 <input name=s οnclick=”this.form.sitesearch.value=’www.zhaokunyao.com’” type=radio checked> zhaokunyao.com
47 </form>
48 </div>
49 <!–google–>備注一下:
<input name=”ie” value=”GB2312″ type=”hidden”>? 根據(jù)此搜索框被嵌入頁面的編碼來修改。
再附一下百度站內(nèi)搜索代碼? http://www.baidu.com/search/freecode.html
Related posts:
總結(jié)
以上是生活随笔為你收集整理的google站内搜索代码的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: css样式后面显示点点点
- 下一篇: java中的IO整理(转)