検索 プログラム

<html>
<head>
    <meta http-equiv=”Refresh” content=”1800;URL=Hanagaki.html”>
    <title></title>
</head>

<body background='car-hardoff.png'>

 


<div id="weather-wrapper" style="background-color:white;"></div>
<iframe
  id="inlineFrameExample"
  title="Inline Frame Example"
  width="1300"
  height="100"
  src="https://clock.shirokuma-lab.com/">
</iframe>
<iframe
  id="inlineFrameExample"
  title="Inline Frame Example"
  width="1300"
  height="300"
  src="https://weathernews.jp/onebox/tenki/tochigi/09208/">
</iframe>


<div id="weather-wrapper" style="background-color:white;">
<script language="JavaScript">
function goSearch(str){

AR = new Array();

var e;
var site01 = "https://www.yahoo.co.jp";
var site11 = "https://search.yahoo.co.jp/search?p=";

var site02 = "https://www.google.com";
var site12 = "https://www.google.com/search?lr=lang_ja&q=";

AR[0]=site11 + document.form1.search_string.value + "&fr=yssw&ei=UTF8";
AR[1]=site12 + document.form1.search_string.value + "&ie=UTF8&oe=UTF8";

for(i=0;i<AR.length;i++){
    if (document.form1.engine[i].checked == true)
    { 
        window.open(AR[i]);
    }
}
}
</script>

<form name="form1">
<input type="checkbox" name="engine" value="p" checked>
<a href="http://www.yahoo.co.jp/">
Yahoo!Japan</a>
<input type="checkbox" name="engine" value="q" checked>
<a href="http://www.google.co.jp">
Google</a>
<input name="search_string" type="text" id="search_string" size="30">
<input type="button" name="Submit" value="検索" onClick="goSearch()">
</form>

</div>

</body>

</html>