Google Blog Search 日本語検索窓を自分のサイトに付ける

—- BEGIN —- 2006/10/12(木) 追記 —-
2ch で参照されてるのを発見。
でも、それは正しくないです… (質問者が知りたがっ
ているのは Google 検索で、ここで私が説明しているの
は Google Blog 検索だから)
—- END —- 2006/10/12(木) 追記 —-
1 つ前の記事で書いた Google Blog Search の日本語検索窓を
自分のサイトに貼るための HTML ですが、こんな感じです。
<a
 href=”http://blogsearch.google.com/blogsearch”
><img
 src=”http://blogsearch.google.com/blogsearch/intl/en_ALL/images/g_bsrch_logo_sm.gif”
 alt=”Google ブログ検索 Beta Logo”
 width=”150″ height=”55″ border=”0″
></a>
<h4>ブログ検索</h4>
<form
 method=”GET”
 action=”http://blogsearch.google.com/blogsearch”
 name=”f”
 target=”_top”>
 <input type=”hidden” id=”hl” name=”hl” value=”ja”>
 <input type=”hidden” id=”ie” name=”ie” value=”Shift_JIS”>
 <input type=”hidden” id=”oe” name=”oe” value=”Shift_JIS”>
 <input type=”hidden” name=”c2coff” value=”1″>
 <input type=”hidden” name=”num” value=”10″>
 <input type=”hidden” id=”bl_auth” name=”bl_auth” value=””>
 <input type=”hidden” id=”as_drrbq” name=”as_drrb” value=”q”>
 <input type=”hidden” name=”as_qdr” value=””>
 <input type=”hidden” name=”lr” value=”lang_ja”>
 <input type=”hidden” id=”sfio” value=”off” name=”safe”>
 <input type=”text” id=”as_q” name=”as_q” size=”15″ maxlength=”255″ value=””>
 <input type=”submit” name=btnG value=”ブログ検索”>
</form>
私のサイト (この Blog) の右上のメニューでは、もう少しコン
パクトにしてます。”ie” と “oe” の項目ですが、サイト自体が
UTF-8 Unicode で書いてあれば UTF-8 を指定しますが、普通は
Shift_JIS で書いている人がほとんどだと思うので、その場合
は Shift_JIS を指定すると、文字化けや、検索指定文字列が
日本語として扱われないという問題を回避できます。β期間が
終わって正式リリースとなれば、こういう情報も Google 自身の
サイトで公開されると思いますが、その前に貼って見たいという
方はお試しください。

「Google Blog Search 日本語検索窓を自分のサイトに付ける」への1件の返信

  1. 以下のトラックバックがありましたが、SPAM と
    判断して削除しました。
    タイトル: バシバシ検索してみよう。
    Weblog: カイロプラクター日記

コメントを残す