検索窓を付ける
ヤフー 作成ツールあり
グーグルカスタム検索エンジン
わかりやすい 設置 カスタム
タグで検索窓を付ける 別窓
HTML ページは「http://kimama.dousetsu.com/」
<!-- Google 検索 -->
<center>
<FORM method=GET action=http://www.google.co.jp/custom TARGET=_blank >
<TABLE bgcolor=#FFFFFF><tr><td>
<A HREF=http://www.google.co.jp/custom TARGET=_blank>
<IMG SRC=http://www.google.co.jp/logos/Logo_40wht.gif border=0
ALT=Google align=absmiddle></A>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google 検索">
<INPUT type=hidden name=cof VALUE="T:white;LW:400;
L:http://google.co.jp/logos/Logo_40blk.gif;LC:#FFC0FF;LH:100;
BGC:purple;AH:center;GL:1;GALT:yellow;AWFID:5e296cf425978c37;">
</td></tr></TABLE>
</FORM>
</center>
<!-- Google 検索 -->
</form>
結果
キーワード検索
サイト内検索(同じ窓)
HTML ページは「http://kimama.dousetsu.com/」
<form action="http://www.google.co.jp/search" method="get">
<input type="hidden" name="as_epq" value="ひかり電話対応 ">
<input type="hidden" name="as_occt" value="any">
<input type="hidden" name="as_sitesearch" value="kimama.dousetsu.com ">
<input type="hidden" name="num" value="10">
サイト内検索
<input type="text" size="20" name="as_q">
<input type="submit" name="btnG" value="検索">
Powered by <a href="http://www.google.co.jp/">
Google</a>
</form>
変更箇所
<input type="hidden" name="as_epq" value=" ひかり電話対応 ">
ホームページのIDを記入
(ここを指定すると検索のキーワードに指定されます)
value=" kimama.dousetsu.com "
http://とIDを省略したURLを記入(このURL内を検索します)
※ http://kimama.dousetsu.com/
value=" 検索 "
ボタン名を記入
結果
上を別窓で開く
HTML ページは「http://kimama.dousetsu.com/」
<!-- Google 検索 -->
<center>
<FORM method=GET action=http://www.google.co.jp/custom TARGET=_blank >
<TABLE bgcolor=#FFFFFF><tr><td>
<A HREF=http://www.google.co.jp/custom TARGET=_blank>
<IMG SRC=http://www.google.co.jp/logos/Logo_40wht.gif border=0
ALT=Google align=absmiddle></A>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google 検索">
<form action="http://www.google.co.jp/search" method="get">
<input type="hidden" name="as_epq" value="ひかり電話対応 ">
<input type="hidden" name="as_occt" value="any">
<input type="hidden" name="as_sitesearch" value="kimama.dousetsu.com ">
<input type="hidden" name="num" value="10">
サイト内検索
<input type="text" size="20" name="as_q">
<input type="submit" name="btnG" value="検索">
Powered by <a href="http://www.google.co.jp/">
Google</a>
</form>
<INPUT type=hidden name=cof VALUE="T:white;LW:400;
L:http://google.co.jp/logos/Logo_40blk.gif;LC:#FFC0FF;LH:100;
BGC:purple;AH:center;GL:1;GALT:yellow;AWFID:5e296cf425978c37;">
</td></tr></TABLE>
</FORM>
</center>
<!-- Google 検索 -->
</form>
結果
ついでに
今日の日
<script>
//今日の日付データを変数hidukeに格納
var hiduke=new Date();
//年・月・日・曜日を取得する
var year = hiduke.getFullYear();
var month = hiduke.getMonth()+1;
var week = hiduke.getDay();
var day = hiduke.getDate();
var yobi= new Array("日","月","火","水","木","金","土");
document.write("西暦"+year+"年"+month+"月"+day+"日 "+yobi[week]+"曜日");
</script>
時刻
<script>
//時刻データを取得して変数jikanに格納する
var jikan= new Date();
//時・分・秒を取得する
var hour = jikan.getHours();
var minute = jikan.getMinutes();
var second = jikan.getSeconds();
document.write(hour+"時",+minute+"分"+second+"秒");
</script>
一緒に表示
<html>
<head>
<title>TAG index Webサイト</title>
</head>
<body>
<script type="text/javascript">
<!--
var weeks = new Array('日','月','火','水','木','金','土');
var now = new Date();
var year = now.getYear(); // 年
var month = now.getMonth() + 1; // 月
var day = now.getDate(); // 日
var week = weeks[ now.getDay() ]; // 曜日
var hour = now.getHours(); // 時
var min = now.getMinutes(); // 分
var sec = now.getSeconds(); // 秒
if(year < 2000) { year += 1900; }
// 数値が1桁の場合、頭に0を付けて2桁で表示する指定
if(month < 10) { month = "0" + month; }
if(day < 10) { day = "0" + day; }
if(hour < 10) { hour = "0" + hour; }
if(min < 10) { min = "0" + min; }
if(sec < 10) { sec = "0" + sec; }
// 表示開始
document.write('現在:<strong>' + year + '年' + month + '月' + day + '日(' + week + ')');
document.write(hour + '時' + min + '分' + sec + '秒</strong>');
// 表示終了
// -->
</script>
</body>
</html>
TAG index Webサイト
平成で表示
<SCRIPT LANGUAGE="JavaScript">
var s,x,y,w;
var h0 = 1988 //平成用;
var x = new Array("日", "月", "火","水","木","金","土");
d = new Date();
y = d.getFullYear()?d.getFullYear():d.getYear();
if (y > 1980){
} else if (y < 100){
y = y + 1900;
} else if(y < 1980) {
y = y + 100;
}
w = y - h0;
s = "平成" + w + "年" + (d.getMonth() + 1) + "月" + d.getDate() + "日(" + x[d.getDay()] +")";
document.write(s);
</SCRIPT>
進む / 戻る / 更新する
<script>
//戻る
function modoru(){
history.back();
}
//進む
function susumu(){
history.forward();
}
//更新
function koshin(){
location.reload();
}
</script>
<form>
<input type="button" value="戻る" onclick="modoru()">
<input type="button" value="進む" onclick="susumu()">
<input type="button" value="更新" onclick="koshin()">
</form>
シンプル 【更新 ボタン】
<Form><Input type="button" value="更新する" onClick="javascript:history.go(0)"></Form>