ソース掲示板




すべてから検索

キーワード   条件 表示 現行ログ 過去ログ トピックス 名前 本文
Google サイト検索パーツ
日時: 2008/12/22 23:19
名前: lightbox



こんなものは、どこにでもあるでしょうが、
以下は maglog 専用で、プロフィールに貼ります
( name=lightbox を自分用に置き換えます )
拡張子:
<iframe
 src="http://winofsql.jp/sites.php?name=lightbox"
 frameborder="no"
 width="155"
 scrolling="no"
 height="170"></iframe>
自分用のを作りたい場合は以下がソースコード( sites.php )
拡張子:
<?
header( "Content-Type: text/html; Charset=shift_jis" );
header( "Expires: Wed, 31 May 2000 14:59:58 GMT" );
?>
<HTML>
<HEAD>
<META http-equiv="Content-Type" CONTENT="text/html; CHARSET=shift_jis">
<style type="text/css">
body {
	margin:0;
}
table {
	table-layout:fixed;
	width:155px;
	background-color:white;
}
</style>
</HEAD>
<BODY>
<form
	method=get
	action="http://www.google.co.jp/search"
	target="_blank"
>
<table border=0>

<tr>
<td colspan=2>
<a href="http://www.google.co.jp/">
<img src="http://www.google.com/logos/Logo_40wht.gif" 
border="0" alt="Google" align="absmiddle"></a>
</td>
</tr>

<tr>
<td colspan=2>
<input type=text name=q size=22 maxlength=255 value="">
<input type=hidden name=ie value=Shift_JIS>
<input type=hidden name=oe value=Shift_JIS>
<input type=hidden name=hl value="ja">
</td>
</tr>

<tr>
<td colspan=2>
<input type=submit name=btnG value="Google 検索">
<input type=hidden name=domains value="maglog.jp/<?= $_GET['name'] ?>">
</tr>

<tr>
<td colspan=2>
<table border=0 style='width:145px;'>
<tr>
<td style='width:23px;'>
<input type=radio name=sitesearch
 value="maglog.jp/<?= $_GET['name'] ?>" checked>
<td style='font-size:12px;'><?= $_GET['name'] ?> を検索</td>
</tr>
</td>
</table>
</tr>

<tr>
<td colspan=2>
<table border=0 style='width:145px;'>
<tr>
<td style='width:23px;'><input type=radio name=sitesearch value=""></td>
<td style='font-size:12px;'>www を検索</td>
</tr>
</td>
</table>
</tr>
</table>

</form>
<BODY>

</HTML>
メンテナンス


日時: 2008/12/22 23:19
名前: lightbox