●先轉貼gladtime在留言板的提問:
您好:冒昧的打擾!
由於痞客沒有提供blog文章的搜尋
因此想請問您如何將google的搜尋器
放進自己的blog中呢?
謝謝!
因為在留言板不好回答,乾脆就來寫一篇我的作法給大家參考囉。
●將AdSense for Search放入自己的blog
1.首先就是要有AdSense的帳號。申請網頁點此。
2.登入AdSense之後,AdSense 設定>> AdSense for Search>>會看到以下畫面:
Google WebSearch + SiteSearch
3.上面的網址如果是直接貼上網誌的網址,總是會出現錯誤訊息,所以乾脆先輸入痞客和無名首頁的網址,之後再手動更改程式碼。
4.照著申請網頁上的步驟依依設定完成後,複製它提供的程式碼並先做適當的編輯
5.下面就直接貼上我的程式碼和修改的地方:
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com.tw/custom" target="google_window">
<table border="0" bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle" width="75" height="32"></img></a>
<br/>
<input type="hidden" name="domains" value="pixnet.net/shing525;pixnet.net/guestbook/shing525"></input>
<label for="sbi" style="display: none">輸入搜尋關鍵字</label><input type="text" name="q" size="40" maxlength="255" value="" id="sbi"></input>
</td></tr>
<tr>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked id="ss0"></input>
<label for="ss0" title="搜尋網頁"><font size="-1" color="#000000">Web</font></label></td>
<td>
<input type="radio" name="sitesearch" value="pixnet.net/shing525" checked id="ss1"></input>
<label for="ss1" title="搜尋 Blog內容"><font size="-1" color="#000000">Blog</font></label></td>
<td>
<input type="radio" name="sitesearch" value="pixnet.net/guestbook/shing525" id="ss2"></input>
<label for="ss2" title="搜尋 Guestbook內容"><font size="-1" color="#000000">Guestbook</font></label></td></tr>
</table>
<label for="sbb" style="display: none">提交搜尋表單</label>
<input type="submit" name="sa" value="搜尋" id="sbb"></input>
<input type="hidden" name="client" value="pub-9026819492588193"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="UTF-8"></input>
<input type="hidden" name="oe" value="UTF-8"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;
LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;
LH:100;LW:100;L:
http://s.pimg.tw/album/shing525/element/54365815/zoomcrop/200x200.jpg"#000000">checked是讓預設值選擇搜尋blog內容,其他應該應該很好懂,記得改成自己的帳號就行了。
醬,有看懂嗎?
您好:冒昧的打擾!
由於痞客沒有提供blog文章的搜尋
因此想請問您如何將google的搜尋器
放進自己的blog中呢?
謝謝!
因為在留言板不好回答,乾脆就來寫一篇我的作法給大家參考囉。
●將AdSense for Search放入自己的blog
1.首先就是要有AdSense的帳號。申請網頁點此。
2.登入AdSense之後,AdSense 設定>> AdSense for Search>>會看到以下畫面:
Google WebSearch + SiteSearch
讓使用者能直接從您的網站搜尋網路,或是您喜好的特定網站。
輸入三個 URL 以便進行 SiteSearch:
http://
請輸入一個有效的 URL
http://
請輸入一個有效的 URL
http://
3.上面的網址如果是直接貼上網誌的網址,總是會出現錯誤訊息,所以乾脆先輸入痞客和無名首頁的網址,之後再手動更改程式碼。
4.照著申請網頁上的步驟依依設定完成後,複製它提供的程式碼並先做適當的編輯
5.下面就直接貼上我的程式碼和修改的地方:
<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com.tw/custom" target="google_window">
<table border="0" bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle" width="75" height="32"></img></a>
<br/>
<input type="hidden" name="domains" value="pixnet.net/shing525;pixnet.net/guestbook/shing525"></input>
<label for="sbi" style="display: none">輸入搜尋關鍵字</label><input type="text" name="q" size="40" maxlength="255" value="" id="sbi"></input>
</td></tr>
<tr>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked id="ss0"></input>
<label for="ss0" title="搜尋網頁"><font size="-1" color="#000000">Web</font></label></td>
<td>
<input type="radio" name="sitesearch" value="pixnet.net/shing525" checked id="ss1"></input>
<label for="ss1" title="搜尋 Blog內容"><font size="-1" color="#000000">Blog</font></label></td>
<td>
<input type="radio" name="sitesearch" value="pixnet.net/guestbook/shing525" id="ss2"></input>
<label for="ss2" title="搜尋 Guestbook內容"><font size="-1" color="#000000">Guestbook</font></label></td></tr>
</table>
<label for="sbb" style="display: none">提交搜尋表單</label>
<input type="submit" name="sa" value="搜尋" id="sbb"></input>
<input type="hidden" name="client" value="pub-9026819492588193"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="UTF-8"></input>
<input type="hidden" name="oe" value="UTF-8"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;
LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;
LH:100;LW:100;L:
http://s.pimg.tw/album/shing525/element/54365815/zoomcrop/200x200.jpg"#000000">checked是讓預設值選擇搜尋blog內容,其他應該應該很好懂,記得改成自己的帳號就行了。
醬,有看懂嗎?
文章標籤
全站熱搜

已經放上去了,但是好像鱉腳鱉腳的耶,不知道是哪裡出了問題:P 好像會踩到妳的地盤說~
已經ok了!! 謝謝妳的分享:)
我看了一下還是有問題唷 建議你要自己去AdSense登入設定之後 會出現你的程式碼 由那個程式碼去改(不要直接copy我的) 另外,編碼的地方記得要選UTF-8才不會顯示亂碼(可能是因為pixnet就是用UTF-8吧)
XD 不好意思,可以麻煩妳再幫我看一下嗎? 謝謝:)
現在看起來很OK了呀^___^
謝謝妳的幫忙:)
您的教學文 解決了我長久以來的問題 大感謝^__^
你也可以到這裡看更多的Google AdSense相關資訊 http://adwitness.com/blog/category/google-adsense/ Simon發現你還沒有放繁中部落格的必備廣告部落客廣告聯播BloggerAds http://adsense-tw.com/archives/888
請問無名可以用AdSense for Search這個嗎?我其他的AdSense for Search用成功了,就這個沒有成功會變成亂碼‧請問可以的話,要怎麼加入呢?
上一篇忘了確認,是AdSense for content有成功但是AdSense for Search會變成亂碼出現一推語法而已,麻煩有成功的教導一下了,謝謝
我也是碰上此問題,很高興改了一個字:UTF-8就解決了, 不過他們不是規定不能改程式碼嗎?不知道這樣改會不會怎樣呢^^" 另外再次謝謝你提供這麼受用的解答喔~