如何把搜索引擎添加到自己的网页中

  如何把百度的搜索引擎放置到自己制作的网页中,并且在全文下面还有完全脱离与嵌套模式的js搜索引擎,可以根据自己的喜好更改。
下面有这样几种代码:
1><iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="140" height="75" src="
http://unstat.baidu.com/bdun.bsc?tn=yejun2605&cv=1&cid=78332&csid=105&rkcs=2&bgcr=FFFFFF&ftcr=000000&rk=1&bd=1&bdas=1">
</iframe>

2><iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="200" height="30" src="http://unstat.baidu.com/bdun.bsc?tn=yejun2605&cv=1&cid=78332&csid=102&rkcs=2&bgcr=FFFFFF&ftcr=000000&rk=1&bd=1&bdas=1">
</iframe>

3><iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="468" height="50" src="http://unstat.baidu.com/bdun.bsc?tn=yejun2605&cv=1&cid=78332&csid=101&rkcs=2&bgcr=FFFFFF&ftcr=000000&rk=1&bd=1&bdas=1">
</iframe>

4><iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="410" height="80" src="http://unstat.baidu.com/bdun.bsc?tn=yejun2605&cv=1&cid=78332&csid=104&rkcs=2&bgcr=FFFFFF&ftcr=000000&rk=1&bd=1&bdas=1">
</iframe>

5><iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="468" height="60" src="http://unstat.baidu.com/bdun.bsc?tn=yejun2605&cv=1&cid=78332&csid=106&rkcs=2&bgcr=FFFFFF&ftcr=000000&rk=1&bd=1&bdas=1">
</iframe>

6><iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" framespacing="0" frameborder="0" scrolling="no" width="400" height="40"  src="http://unstat.baidu.com/bdun.bsc?tn=yejun2605&cv=1&cid=78332&csid=108&rkcs=2&bgcr=FFFFFF&ftcr=000000&rk=1&bd=1&bdas=1">
</iframe>


下面是整个页面的搜索引擎,里面包括了十种搜索引擎代码,并且完全脱离与嵌套模式,可以自己更改页面设计风格,代码如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<table width="760" border="0" cellpadding="0" cellspacing="0" align="center">
<script language="javascript">
function go(action, field, value){
document.f.action = "http://" + action;
obj = eval("document.f." + field);
obj.value = value;
document.f.submit();
}
</script>
<form name="f" target="_blank">
<input type="hidden" name="query" value="">
<input type="hidden" name="p" value="">
<input type="hidden" name="_searchkey" value="">
<input type="hidden" name="wd" value="">
<input type="hidden" name="q" value="">
<input type="hidden" name="cl" value="3">
<input type="hidden" name="hl" value="zh-CN">
<input type="hidden" name="ie" value="GB2312">
<input type="hidden" name="word" value="">
<tr>
 <td width="300" align="center"><font size="3">搜狐搜索</font></td>
 <td>
<input type="text" name="text1" value="">
<input type="button" value="搜索" onClick="go('search.sohu.com/web', 'query', document.f.text1.value)">
 </td>
</tr>
<tr>
 <td width="300" align="center"><font size="3">雅虎搜索</font></td>
 <td>  
<input type="text" name="text2" value="">
<input type="button" value="搜索" onClick="go('cn.websearch.yahoo.com/search', 'p', document.f.text2.value)">  
 </td>
</tr>
<tr>
 <td width="300" align="center"><font size="3">新浪搜索</font></td>
 <td>
<input type="text" name="text3" value="">
<input type="button" value="搜索" onClick="go('search.sina.com.cn/cgi-bin/search/search.cgi', '_searchkey', document.f.text3.value)">  
 </td>
</tr>
<tr>
 <td width="300" align="center"><font size="3">百度搜索</font></td>
 <td>
<input type="text" name="text4" value="">
<input type="button" value="搜索" onClick="go('www.baidu.com/s', 'wd', document.f.text4.value)">  
 </td>
</tr>
<tr>
 <td width="300" align="center"><font size="3">google搜索</font></td>
 <td>
<input type="text" name="text5" value="">
<input type="button" value="搜索" onClick="go('www.google.com/search', 'q', document.f.text5.value)">  
 </td>
</tr>
<tr>
 <td width="300" align="center"><font size="3">网易搜索</font></td>
 <td>
<input type="text" name="text6" value="">
<input type="button" value="搜索" onClick="go('site.so.163.com/search.php', 'q', document.f.text6.value)">  
 </td>
</tr>
<tr>
 <td width="300" align="center"><font size="3">一搜搜索</font></td>
 <td>
<input type="text" name="text7" value="">
<input type="button" value="搜索" onClick="go('www.yisou.com/search', 'p', document.f.text7.value)">  
 </td>
</tr>
<tr>
 <td width="300" align="center"><font size="3">中华网搜索</font></td>
 <td>
<input type="text" name="text8" value="">
<input type="button" value="搜索" onClick="go('a.china.com/search/result.php/result.php', 'query', document.f.text8.value)">  
 </td>
</tr>
<tr>
 <td width="300" align="center"><font size="3">TOM搜索</font></td>
 <td>
<input type="text" name="text9" value="">
<input type="button" value="搜索" onClick="go('search.tom.com/search.php', 'word', document.f.text9.value)">  
 </td>
</tr>
<tr>
 <td width="300" align="center"><font size="3">QQ搜索</font></td>
 <td>
<input type="text" name="text10" value="">
<input type="button" value="搜索" onClick="go('so.qq.com/cgi-bin/search', 'word', document.f.text10.value)">  
 </td>
</tr>
</form>
</table>
</body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值