站内搜索站内搜索代码

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

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

DiyVM独立服务器:香港沙田服务器,5M带宽CN2线路,L5630*2/16G内存/120G SSD硬盘,499元/月

diyvm怎么样?diyvm商家VPS主机均2GB内存起步,三个地区机房可选,使用优惠码后每月69元起;DiyVM独立服务器开设在香港沙田电信机房,CN2线路,5M带宽,自动化开通上架,最低499元/月,配置是L5630*2/16G内存/120G SSD硬盘。DiyVM是一家成立于2009年的国人主机商,提供的产品包括VPS主机、独立服务器租用等,产品数据中心包括中国香港、日本大阪和美国洛杉矶等,...

Friendhosting四五折促销,VPS半年付7.5欧元起

Friendhosting发布了针对“系统管理日”(每年7月的最后一个星期五)的优惠活动,针对VPS主机提供55%的优惠(相当于四五折),支持1-6个月付款使用,首付折扣非永久,优惠后最低套餐首半年7.18欧元起。这是一家保加利亚主机商,成立于2009年4月,商家提供VDS和独立服务器租用等,数据中心目前可选美国洛杉矶、保加利亚、乌克兰、荷兰、拉脱维亚、捷克和波兰等8个地区机房。下面以最低套餐为例...

小渣云(36元/月)美国VPS洛杉矶 8核 8G

小渣云 做那个你想都不敢想的套餐 你现在也许不知道小渣云 不过未来你将被小渣云的产品所吸引小渣云 专注于一个套餐的商家 把性价比 稳定性 以及价格做到极致的商家,也许你不相信36元在别人家1核1G都买不到的价格在小渣云却可以买到 8核8G 高配云服务器,并且在安全性 稳定性 都是极高的标准。小渣云 目前使用的是美国超级稳定的ceranetworks机房 数据安全上 每5天备份一次数据倒异地 支持一...

站内搜索代码为你推荐
少儿英语哪个好少儿英语哪套教材好哪里好呢?朗逸和速腾哪个好朗逸和新速腾哪个性能更好点?录音软件哪个好录音软件哪个好ps软件哪个好怎么ps啊,哪个软件好英语词典哪个好英语词典哪种更好啊?核芯显卡与独立显卡哪个好独立显卡和核芯显卡有什么区别尼康和佳能单反哪个好佳能和尼康单反哪个好?雅思和托福哪个好考托福和雅思哪个好考 急。。。。。云盘哪个好哪个网盘好用 而且下载速度快 还免费美国国际东西方大学明尼苏达大学(是莫瑞斯分校)和美国东北大学 应该去哪一个 是这个方面的专家回答啊!有偏见性的不要说!
云南虚拟主机 工信部域名备案 域名备案批量查询 免费动态域名解析 hostgator winhost 56折 godaddy支付宝 英文简历模板word 服务器架设 qingyun 165邮箱 vip购优惠 重庆双线服务器托管 如何建立邮箱 双线机房 跟踪路由命令 东莞idc 网购分享 重庆电信服务器托管 更多