现在的位置: 首页 > 搜索技术 > 正文

在自己的网页中引入“Google”、“百度”搜索引擎

2018年01月28日 搜索技术 ⁄ 共 1590字 ⁄ 字号 评论关闭

<html>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<head>
<script>
var tmpValue="这里输入关键字";
</script>

</head>

<body>

<!--

Google 部分

-->
<form method=get action="http://www.google.com/search" target="_blank">
<table bgcolor="#FFFFFF"><tr>
<td>
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_40wht.gif" width=60 border="0" alt="Google" style="position:relative;top:6;left:6">
</a>

<input type=text name=q value='这里输入关键字' size=20 maxlength=255 onfocus="this.value='';"

onblur="if(this.value!='')tmpValue=this.value;else tmpValue='这里输入关键字';this.value=tmpValue;">
<input type=radio name=sitesearch value="www.yahoo.com.cn"> 雅虎搜索
<input type=radio name=sitesearch value="www.126.com"> 网易搜索
<input type=submit name=btnG value="搜索">
<input type=hidden name=ie value=GB2312>
<input type=hidden name=oe value=GB2312>
<input type=hidden name=hl value=zh-CN>
<br>
</td></tr></table>
</form>

<!--

百度 部分

-->
<div style="position:relative;top:-76;left:490">
<table border=0>
<form action="http://www.baidu.com/s" target="_blank">
<input type=hidden name=tn value=sitesowang>
<tr><td width=985>
<input type=hidden name=cl value=3>
<input type=hidden name=rn value=10>
<input type=hidden name=ct value=0>
<input type=hidden name=lm value=0></td></tr>
<tr><td height="40" bgcolor="#F0F7FF">
<a href="http://d.baidu.com/index.php?tn=sitesowang">
<img src="http://www.baidu.com/img/logo-yy.gif" border=0 width=60 alt="百度">
</a>
<input type=text value='这里输入关键字' name=word size=20 onfocus="this.value='';"

onblur="if(this.value!='')tmpValue=this.value;else tmpValue='这里输入关键字';this.value=tmpValue;">
<input name="s" type=submit value="搜索"></td></tr>
</form>
</table>
</div>

</body>

</html>

抱歉!评论已关闭.