作者Quembel (Quembel)
看板Blog
标题Re: [请益] 在blog中加入搜寻栏位
时间Fri May 20 01:26:12 2005
※ 引述《sinread (有机会换PowerBook!!)》之铭言:
: 我想在我的blog中利用google site search来做搜寻功能
: 首先我在我的sidebar中加入:
: <h2 class="sidebar-title">Search</h2>
: <ul>
: <form method=get action=http://www.google.com/search>
: <input type=text name=q size=14>
: <input type=submit value="Search This Blog">
: <input type=hidden name=sitesearch value="xxxx.blogspot.com">
: <input type=hidden name=hl value=UTF-8>
: </form>
: </ul>
: 然後再去google中加入我的url
: 不知道这样过程是否正确?因为我加入两天了~依然不能搜寻我的blog
: >< 请各位指点一下
这是原本Google提供要贴上的程式码
<!-- SiteSearch Google -->
<FORM method=GET action="
http://www.google.com/search">
<input type=hidden name=ie value=
UTF-8>
<input type=hidden name=oe value=
UTF-8>
<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=submit name=btnG VALUE="Google Search">
<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 DOM
AIN NAME" checked> YOUR DOMAIN NAME <br>
</font>
</td></tr></TABLE>
</FORM>
<!-- SiteSearch Google -->
编码的方式要改.如果你的Blogspot在编码上选的是Big5,就改成Big5试试看
不过我的好像也没什麽用XD
--
岁月的容颜
http://aopchen.blogspot.com
『幸与不幸都在我们生活四周发生,只是发生的太缓慢,慢的让我们无法察觉。』
-普鲁斯特,追忆似水年华-
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.121.210.88
※ 编辑: Quembel 来自: 59.121.210.88 (05/20 01:35)