站内搜索站内搜索代码

站内搜索代码  时间:2021-01-27  阅读:()

直接粘在页面中即可使用

<form method=get action="http://www.google.com/search">

<input type=text name=q>

<input type=submit name=btnG value="Google搜索">

<input type=hidden name=ie value=GB2312>

<input type=hidden name=oe value=GB2312>

<input type=hidden name=hl value=zh-CN>

<input type=hidden name=domains value="www.amznz.com">

<input type=hidden name=sitesearch value="www.amznz.com">

</form>

<!--Google站内搜索结束-->

注意请根据自己网站编码而更改搜索代码中的编码如 UTF-8、 GB 2312等。<!--Baidu站内搜索开始-->

<form action="http://www.baidu.com/baidu">

<input type=text name=word>

<input type="submit"value="B aidu搜索">

<input name=tn type=hidden value="bds">

<input name=cl type=hidden value="3">

<input name=ct type=hidden value="2097152">

<input name=si type=hidden value="www.amznz.com">

</form>

<!--Baidu站内搜索结束-->

<!--Yaho o站内搜索开始-->

<form action="http://www.yahoo.com.cn/search">

<input type=text name="p">

<input typ e="submit"value="Yahoo搜索">

<input type=hidden name=vs value="www.amznz.com">

</form>

<!--Yaho o站内搜索结束-->

下面是Google和百度的Javascript版的站内搜索代码

<!--Google站内搜索开始-->

<script type="text/j avascript">function googlesearch() {var wq=document.getElementsByName("wq")[0].value;varlink="http://www.google.com/s earch?domains=www.amznz.com&sites earch=www.amznz.com&q="+wq;window.open(link); }

</script>

<input type="text" name="wq"/><input type="submit" onclick="javascript:googlesearch()"value="Google搜索" />

<!--Google站内搜索结束-->

<!--Baidu站内搜索开始-->

<script language="j avascript">function baidusearch() {var wd=document.getElementsByName("wd")[0].value;varlink="http://www.b aidu.c om/s?si=www.amznz.c om&cl=3&ct=2097152&tn=b aidul ocal&word="+wd;window.open(link); }

</script>

<input type="text" name="wd"/><input type="submit" onclick="javascript:baidusearch()"value="Baidu搜索" />

<!--Baidu站内搜索结束-->

<!--利用各种搜索引擎-->

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"Inherits="_D efault"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml 1/D TD/xhtml 1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

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

<title>站内搜索</title>

</head>

<b o dy>

<script type="text/j avascript" language="j avascript">function search4() {if(form 1.ab c0.che cked)window.open("http://s earch.sina.com.cn/cgi-bin/search/search.cgi?_searchkey=" +form 1.key.value, "mspg0");if(form1.abc 1.checked)window.open("http://site.search.s ohu.com/sites earch.j sp?page_index=0&key_word=" +form1.key.value, "mspg 1");

if(form1.abc2.checked)window.open("http://cn.search.yahoo.com/search?p=" + form 1.key.value,"ms p g2");if(form 1.ab c3.che cked)window.open("http://www.skycn.com/search.php?sor=00&ss_name=" +form 1.key.value, "mspg3");if(form 1.abc4.checked)window.open("http://www.google.com/s earch?hl=zh-CN&inlang=zh-CN&ie=GB2312&oe=GB2312&q="+form 1.key.value, "mspg4");if(form 1.ab c5.che cked)window.open("http://movie.baidu.com/srh.php?tn=baidux&word=" +form 1.key.value, "mspg5");if(form 1.ab c6.che cked)window.open("http://www.baidu.com/s?tn=sitehao 123&word="+form 1.key.value,"mspg6");if(form 1.ab c7.che cked)window.open("http://mp 3 search.b ai du.c om/wstsearch?tn=baidump 3&ct=134217728&lm=-1&rn=&word="+form 1.key.value, "mspg7");if(form1.abc8.checked)window.open("http://search.s ogua.com/s earch/search.asp?fmp3=1&frm=1&fwma=1&fasf=1&go.x=25&go.y=19&key="+form1.key.value, "mspg8");if(form 1.ab c9.che cked)window.open("http://mp3 search.baidu.com/wstsearch?tn=baidump3 lyric&ct=150994944&lm=-1&rn=&word="+form 1.key.value, "mspg9");if(form1.abc 10.checked)window.open("http://www.baidu.com/baidu?ft=all&q 1=" + form1.key.value,"mspg 10");if(form1.abc 11.checked)window.open("http://www.b aidu.c om/i?ct=201326592&cl=2&lm=-1&tn=b aiduima ge&word=" +form1.key.value, "mspg 11");if(form1.abc 12.checked)window.open("http://bingle.pku.edu.cn/scripts/ftp_search.exe?cdtype=GB&word="+form 1.key.value, "mspg 12");if(form1.abc 13.checked)window.open("http://mp 3.baidu.c om/m?rn=&tn=baidump 3&ct=134217728&lm=6&word=" +form1.key.value, "mspg 13");if(form1.abc 14.checked)window.open("http://www.yis ou.com/search?p="+form1.key.value, "mspg 14");

if(form1.abc 15.checked)window.open("http://news.baidu.com/ns?cl=2&rn=20&tn=news&word=" +form1.key.value, "mspg 15");if(form1.abc 16.checked)window.open("http://www.baidu.com/baidu?ie=gb2312&bs=&sr=&z=&ct=1048576&cl=3&f=8&word="+form 1.key.value, "mspg 16");return false;

}</script>

<form name="form 1"onsubmit="return(search4())">

<table border="0" cellspacing=0 width=100%bordercolor=#99DF95 bgcolor=#F0F7FF cellpadding=0>

<tr>

<td colspan="2" align="center"><p><B><font color="#000000">关键字:</font></B><inputtype=text name=key size=15>

<input type=submit style=COLOR:rgb(0,0,0);FONT-SIZE:9pt value=搜索name=B2>

<input type=checkbox name="abc6"value=google checked><a href=http://www.baidu.com/>百度</a>&nbsp;

<input type=checkbox name=abc4 value=3721><ahref=http://www.google.com/intl/zh-CN/>google</a>

<input type=checkbox name=abc7 value=baidump3><ahref=http://mp3.baidu.com/>mp3</a>&nbsp;

<input type=checkbox name=abc9 value=baidump3>歌词&nbsp;

<input type=checkbox name=abc 11 value=baidump3><a href=http://image.baidu.com/>图片</a>&nbsp;

<input type=checkbox name=abc13 value=baiduflash><ahref=ss/flashbaidu.htm>FLASH</a>&nbsp;

<input name=abc5 type=checkbox value=baidumovie><a href=http://movie.baidu.com/>影视</a>&nbsp;

<input type=checkbox name=abc10 value=baidufile><a href=http://file.baidu.com/>文档</a>&nbsp;

<input name=abc15 type=checkbox value=baidunews><a href=http://news.baidu.com/>新闻</a><br>

</p>

</td>

</tr>

<tr>

<td width="220"align="right">&nbsp;

</td>

<td width="516"><input type=checkbox name=abc16 value=baidudict><ahref=http://dict.baidu.com/>词典</a>&nbsp;&nbsp;

<input type=checkbox name=abc8 value=baidump3><a href=http://www.sogua.com/>搜刮mp3</a>&nbsp;&nbsp;

<input type=checkbox name=abc2 value=yahoo><ahref=http://cn.search.yahoo.com/web?&ei=UTF-8>雅虎</a>&nb sp;

<input type=checkbox name=abc3 value=yeah><a href=software.htm>软件</a>&nbsp;<input type=checkbox name=abc12 value=baidump3><a href=http://e.pku.edu.cn/>天网搜索</a>&nbsp;

<input type=checkbox name=abc 14 value=baidump3><a href=http://www.yisou.com/>一搜</a>&nbsp;&nbsp;

<input type=checkbox name=abc0 value=sina><a href=http://cha.sina.com.cn/>新浪</a>&nbsp;&nbsp;

<input type=checkb ox name=abc 1 value=sohu><a href=http://dir.sogou.com/>搜狐</a></td>

</tr>

</table>

</form>

</body>

</html>

<!--利用各种搜索引擎-->

pacificrack:$12/年-1G内存/1核/20gSSD/500g流量/1Gbps带宽

pacificrack在最新的7月促销里面增加了2个更加便宜的,一个月付1.5美元,一个年付12美元,带宽都是1Gbps。整个系列都是PR-M,也就是魔方的后台管理。2G内存起步的支持Windows 7、10、Server 2003\2008\2012\2016\2019以及常规版本的Linux!官方网站:https://pacificrack.com支持PayPal、支付宝等方式付款7月秒杀VP...

Atcloud:全场8折优惠,美国/加拿大/英国/法国/德国/新加坡vps,500g大硬盘/2T流量/480G高防vps,$4/月

atcloud怎么样?atcloud刚刚发布了最新的8折优惠码,该商家主要提供常规cloud(VPS)和storage(大硬盘存储)系列VPS,其数据中心分布在美国(俄勒冈、弗吉尼亚)、加拿大、英国、法国、德国、新加坡,所有VPS默认提供480Gbps的超高DDoS防御。Atcloud高防VPS。atcloud.net,2020年成立,主要提供基于KVM虚拟架构的VPS、只能DNS解析、域名、SS...

无法忍受旧版不兼容PHP7+主题 更换新主题

今天父亲节我们有没有陪伴家人一起吃个饭,还是打个电话问候一下。前一段时间同学将网站账户给我说可以有空更新点信息确保他在没有时间的时候还能保持网站有一定的更新内容。不过,他这个网站之前采用的主题也不知道来源哪里,总之各种不合适,文件中很多都是他多年来手工修改的主题拼接的,并非完全适应WordPress已有的函数,有些函数还不兼容最新的PHP版本,于是每次出现问题都要去排查。于是和他商量后,就抽时间把...

站内搜索代码为你推荐
电脑管家和360哪个好电脑管家和360安全卫士哪个好985和211哪个好985大学好 还是211是什么意思朱祁钰和朱祁镇哪个好明英宗和明代宗哪个皇帝要做得好杰士邦和杜蕾斯哪个好杰士邦和杜蕾斯哪个好?大家都用哪款套套啊?清理手机垃圾软件哪个好清理手机垃圾的软件哪个好清理手机垃圾软件哪个好手机垃圾清理软件哪个好yy空间登录怎么登陆YY空间辽宁联通网上营业厅辽宁省昌图县联通网上营业厅通话单怎么查询willyunlee求几近完美演员表,几近完美女主角几近完美男主角是谁?首选dns服务器首选DNS服务器和备用DNS服务器有什么区别?
成都虚拟空间 双线服务器租用 广东服务器租用 广州主机租用 北京租服务器 俄罗斯vps 如何查询ip地址 老左 naning9韩国官网 blackfriday evssl证书 css样式大全 牛人与腾讯客服对话 河南服务器 中国智能物流骨干网 cpanel空间 服务器合租 美国网站服务器 免费cdn 域名dns 更多