热烈祝贺台州朗动科技的站长论坛隆重上线!(2012-05-28)    热烈庆祝伟大的祖国60周年生日 点击进来我们一起为她祝福吧(2009-09-26)    站长论坛禁止发布广告,一经发现立即删除。谢谢各位合作!.(2009-08-08)    热烈祝贺台州网址导航全面升级,全新版本上线!希望各位一如既往地支持台州网址导航的发展.(2009-03-28)    台州站长论坛恭祝各位新年快乐,牛年行大运!(2009-01-24)    台州Link正式更名为台州网址导航,专业做以台州网址为主的网址导航!(2008-05-23)    热烈祝贺台州Link资讯改名为中国站长资讯!希望在以后日子里得到大家的大力支持和帮助!(2008-04-10)    热烈祝贺台州Link论坛改名为台州站长论坛!希望大家继续支持和鼓励!(2008-04-10)    台州站长论坛原[社会琐碎]版块更名为[生活百科]版块!(2007-09-05)    特此通知:新台州站长论坛的数据信息全部升级成功!">特此通知:新台州站长论坛的数据信息全部升级成功!(2007-09-01)    台州站长论坛对未通过验证的会员进行合理的清除,请您谅解(2007-08-30)    台州网址导航|上网导航诚邀世界各地的网站友情链接和友谊联盟,共同引领网站导航、前进!(2007-08-30)    禁止发广告之类的帖,已发现立即删除!(2007-08-30)    希望各位上传与下载有用资源和最新信息(2007-08-30)    热烈祝贺台州站长论坛全面升级成功,全新上线!(2007-08-30)    
便民网址导航,轻松网上冲浪。
台州维博网络专业开发网站门户平台系统
您当前的位置: 首页 » HTML/XHTML/XML编程 » 常用的搜索代码整理精华

常用的搜索代码整理精华

论坛链接
  • 常用的搜索代码整理精华
  • 发布时间:2007-12-17 12:40:07    浏览数:6331    发布者:superadmin    设置字体【   
<script>
function search4()
{
if(form1.abc6.checked)
window.open("http://www.google.com/search?hl=zh-CN&lr=lang_zh-CN&q="+form1.key.value,"mspg6");
if(form1.abc9.checked)
window.open("http://www1.baidu.com/baidu?tn=site5566&word="+form1.key.value,"mspg9");
if(form1.abc0.checked)
window.open("http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey="+form1.key.value,"mspg0");
Www@Chinaz@com


if(form1.abc4.checked)
window.open("http://cns.3721.com/cns.dll?name="+form1.key.value,"mspg4");
if(form1.abc5.checked)
window.open("http://search.yahoo.com/bin/search?p="+form1.key.value,"mspg5");
return false;
}
</script>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><form name="form1" onsubmit="return(search4())">
<p><input type="text" name="key" size="12"><input type="checkbox" name="abc6"
value="google" checked>Google <input type="checkbox" name="abc9" value="baidu" checked>百度 <input type="checkbox" name="abc0" value="sina">新浪
<input type="checkbox" name="abc4" value="3721">3721 <input
type="checkbox" name="abc5" value="yahooe">Yahoo <input
type="submit" value="搜索" name="B1" style="{font-size:12px;background:#cccccc;}"> </p>
</td></form>
<td>
</tr>
<tr><td colspan="2" height="7"></td></tr>
</table>


<script>
A=document.all
function computer(n){if(n=="")return
A.text_32.value=eval(n)} Www~Chinaz~com

function search4(){
a=A.q.value
if(A.abc0.checked)window.open("http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey="+a,"mspg0")
if(A.abc1.checked)window.open("http://site.search.sohu.com/sitesearch.jsp?page_index=0&key_word="+a,"mspg1")
if(A.abc2.checked)window.open("http://cn.search.yahoo.com/search/cn?p="+a,"mspg2")
if(A.abc3.checked)window.open("http://nisearch.163.com/Search?q="+a,"mspg3")
if(A.abc4.checked)window.open("http://cns.3721.com/cns.dll?name="+a,"mspg4")
if(A.abc5.checked)window.open("http://search.yahoo.com/bin/search?p="+a,"mspg5")
if(A.abc6.checked)window.open("http://www.google.com/search?hl=zh-CN&lr=lang_zh-CN&q="+a,"mspg4")
if(A.abc8.checked)top.location.href="http://www1.baidu.com/baidu?cl=3&word="+a
return false}
</script>

<table border=1 height=32 bgcolor=#eeeeee><tr><td>
<form onsubmit="return false">查找
<input name=q size=31 onkeydown="if(event.keyCode==13)search4()"> 
<button onclick=search4()>搜索</button> 
<button onclick="A.q.value='';A.q.select();document.execCommand('Paste');">粘贴</button>
<input type="checkbox" name="abc8" checked>百度
<input type="checkbox" name="abc6">Google
<input type="checkbox" name="abc0">新浪
<input type="checkbox" name="abc1">搜狐
<input type="checkbox" name="abc2">雅虎
<input type="checkbox" name="abc3">网易
<input type="checkbox" name="abc4">3721
<input type="checkbox" name="abc5">Yahoo
</form>
</td></tr></table>

<script>
function search4()
{
if(form1.abc0.checked)
window.open("http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey="+form1.key.value,"mspg0");
if(form1.abc1.checked)
window.open("http://site.search.sohu.com/sitesearch.jsp?page_index=0&key_word="+form1.key.value,"mspg1");
if(form1.abc2.checked)
window.open("http://cn.search.yahoo.com/search/cn?p="+form1.key.value,"mspg2");
if(form1.abc3.checked)
window.open("http://nisearch.163.com/Search?q="+form1.key.value,"mspg3");
if(form1.abc4.checked)
window.open("http://www.google.com/search?hl=zh-CN&lr=lang_zh-CN&q="+form1.key.value,"mspg4");
if(form1.abc5.checked)
window.open("http://search.yahoo.com/bin/search?p="+form1.key.value,"mspg5");
if(form1.abc6.checked)
window.open("http://www1.baidu.com/baidu?tn=sitehao123&word="+form1.key.value,"mspg6");
if(form1.abc7.checked)
window.open("http://mp3search.baidu.com/wstsearch?tn=baidump3&ct=134217728&lm=-1&rn=&word="+form1.key.value,"mspg7");
return false;
}
</script>
<table border="1" cellspacing="0" width="350" height="64" bordercolor="#99DF95"
bgcolor="#F0F7FF" cellpadding="0">
<tr>
<td width="700" height="5"><p align="center"><font color="#008000">〖如果你所需的网站在本站网址中没有找到,请在下面综合搜索引擎中输入网站关键进行搜索〗</font></td>
</tr>
<tr>
<td width="700" height="3"><p align="center">综合搜索<a href="search.htm"
target="_self">引擎</a></td>
</tr>
<tr>
<td width="700" height="50"><form name="form1" onsubmit="return(search4())">
<div align="center"><center><p>请输入关键字:<input type="text" name="key" size="12"> <input
type="submit" style="COLOR:" rgb(0,0,0); FONT-SIZE: 9pt value="搜索" name="B1"> <BR> <input
type="checkbox" name="abc0" value="sina"> 新浪 <input type="checkbox" name="abc1"
value="sohu">搜狐 <input type="checkbox" name="abc2" value="yahoo">雅虎 <input
type="checkbox" name="abc3" value="yeah">网易 <input type="checkbox" name="abc4"
value="3721" checked><BR>google <input type="checkbox" name="abc5" value="yahooe">Yahoo <input
type="checkbox" name="abc6" value="google" checked>百度 <input type="checkbox"
name="abc7" value="baidump3"><a href="mp3s.htm"><font color="#FF0000">mp3</font></a></p>
</center></div>
</form>
</td>
</tr>
</table>
娱乐休闲专区A 影视预告B 音乐咖啡C 英语阶梯D 生活百科
网页编程专区E AMPZF HTMLG CSSH JSI ASPJ PHPK JSPL MySQLM AJAX
Linux技术区 N 系统管理O 服务器架设P 网络/硬件Q 编程序开发R 内核/嵌入
管理中心专区S 发布网址T 版主议事U 事务处理