站内搜索站内搜索代码

站内搜索代码  时间: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>

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

2022年最新PHP短网址生成系统/短链接生成系统/URL缩短器系统源码

全新PHP短网址系统URL缩短器平台,它使您可以轻松地缩短链接,根据受众群体的位置或平台来定位受众,并为缩短的链接提供分析见解。系统使用了Laravel框架编写,前后台双语言使用,可以设置多域名,还可以开设套餐等诸多功能,值得使用。链接: https://pan.baidu.com/s/1ti6XqJ22tp1ULTJw7kYHog?pwd=sarg 提取码: sarg文件解压密码 www.wn7...

易探云月付18元起,香港/美国/深圳/北京VPS,CN2、BGP等多线路

易探云怎么样?易探云是国内一家云计算服务商家,致力香港服务器、国内外服务器租用及托管等互联网业务,目前主要地区为运作香港BGP、香港CN2、广东、北京、深圳等地区。易探云服务器均选择当下热门线路,比如CN2 GIA、BGP线路、CN2线路等,所有云主机支持月付,并且首月优惠,年付优惠,优惠后香港沙田云服务器/独立ip/香港CN2线路,每月仅18元,188元/年。点击进入:易探云官方网站地址1、香港...

VirMach:$27.3/月-E3-1240v1/16GB/1TB/10TB/洛杉矶等多机房

上次部落分享过VirMach提供的End of Life Plans系列的VPS主机,最近他们又发布了DEDICATED MIGRATION SPECIALS产品,并提供6.5-7.5折优惠码,优惠后最低每月27.3美元起。同样的这些机器现在订购,将在2021年9月30日至2022年4月30日之间迁移,目前这些等待迁移机器可以在洛杉矶、达拉斯、亚特兰大、纽约、芝加哥等5个地区机房开设,未来迁移的时...

站内搜索代码为你推荐
等额本息等额本金哪个好等额本息和等额本金哪个好?杰士邦和杜蕾斯哪个好安全套杜蕾丝好还是杰士邦好?雅思和托福哪个好考现在考雅思还是托福好考生个人空间登录如何找回 自考考生个人空间的密码?上海dns服务器地址中国主要城市DNS服务器IP地址列表360云存储360网盘目前最大空间是多少广东联通彩铃广东联通卡用短信怎样开通彩铃?最便宜的宝马最便宜的宝马是哪款?多少钱?保时捷最便宜的车保时捷最便宜的车多少钱(不管是跑车还是旅行车,是保时捷的车就可以了),了解下!带上车的名字便宜机票什么时候机票最便宜?
台湾服务器租用 免费注册网站域名 免费域名申请 外贸主机 搬瓦工官网 mediafire下载 镇江联通宽带 亚洲小于500m 美国免费空间 空间登录首页 登陆空间 789 沈阳主机托管 游戏服务器出租 photobucket 畅行云 杭州电信宽带优惠 如何登陆阿里云邮箱 服务器硬件配置 rewritecond 更多