文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>常用的搜索代码整理精华

常用的搜索代码整理精华

时间:2007-02-17  来源:PHP爱好者

<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"); 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)} 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>
php爱好者站 http://www.phpfans.net PHP|MySQL|javascript|ajax|html.
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载