自作のホームページ内での検索方法

[新着] Webテンプレートを仮オープンしました



0   名前: 田中 章介  : 2006/11/25(土) 18:52  [URL]  ID:hPMBMH2C
【何をしたいのか】
→ 自分で作ったホームページがあります。その中でキーワードによる検索をする欄を作りたいのです。

【現在の状況】
→ ホームページ自体はHTMLで作り稼動しています。

【何をしてみたのか】
→ ”検索”というキーワードで検索したら、Web検索の方法が回答されました。


【備考】
→他所のホームページにはその中での検索が出来るものもあるのですが、表示→ソースでそのhtmlの書き方にたどり着けませんでした。


1   名前: Newのり太 : 2006/11/25(土) 18:52  ID:nnm3GZAJ
こちらでいくつかの方法が説明されています。
http://www.tohoho-web.com/wwwsrch.htm

2   名前: シオン : 2006/11/25(土) 18:52  ID:J/vVUVN/
TAG-indexの検索部分のソース。

<form method="GET" action="http://www.google.co.jp/search">
<input type="hidden" name="ie" value="Shift_JIS">
<input type="hidden" name="oe" value="Shift_JIS">
<input type="hidden" name="hl" value="ja">
<input type="hidden" name="as_sitesearch" value="tagindex.com">
<table cellspacing="2" cellpadding="0">
<tr>
<td><input type="text" name="q" size="50" maxlength="255" style="width: 380px;"></td>
<td><a href="http://www.google.co.jp/"><img src="http://www.tagindex.com/image/logo/google.gif" alt="Google" border="0" width="75" height="32"></a></td>
</tr>
<tr>
<td style="text-align: center;"><input type="submit" name="btnG" value="サイト内検索"></td>
<td></td>
</tr>
</table>
</form>


一覧へ戻る