替google baidu做广告了,愿意的的就用。。。。。。。
是有人要的,自己也经常用,所以。。。。
安装方法:
因为时间问题和search.htm模板基本都不会被修改,所以我就直接给出整个修改好的模板
A:这个是我原创的,这个是可以利用原来的关键字,来搜索
B: (7楼的演示)这个主要是别人的(我的也结合在里面),那下面部分的版权不是我的,免得等下有出什么事端
用附件覆盖你的就可以了
主要代码:
我的代码:
- <script language=javascript>
- function chktype(stype){
- var imax=5;
- {if $qihoostatus}
- imax=6;
- {/if}
- for(i =0;i<imax;i++) if(stype.srchtype[i].checked) stype_va=stype.srchtype[i].value;
- if(stype_va=="baidu"){
- stype.target="_blank";
- stype.method="get";
- stype.action="http://www.baidu.com/s";
- if(stype.srchtxt.value && stype.srchuname.value)
- stype.wd.value=stype.srchtxt.value+" "+stype.srchuname.value;
- else stype.wd.value=stype.srchtxt.value+stype.srchuname.value;
- }
- else if(stype_va=="google"){
- stype.target="_blank";
- stype.method="get";
- stype.action="http://www.google.com/search";
- if(stype.srchtxt.value && stype.srchuname.value)
- stype.q.value=stype.srchtxt.value+" "+stype.srchuname.value;
- else stype.q.value=stype.srchtxt.value+stype.srchuname.value;
- }
- else if(stype_va=="qihoo"){
- stype.action="search.php";
- stype.target="_blank";
- stype.method="post";
- }
- else{
- stype.action="search.php";
- stype.target="_self";
- stype.method="post";
- }
- return true;
- }
- </script>
复制代码
另外的那个代码(不知道作者):
- <!--{if !$searchsubmit}-->
- <table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center">
- <tr>
- <td valign="top" bgcolor="{BORDERCOLOR}"><table width="100%" border="0" class="tableborder" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" class="smalltxt">
- <tr align="center" class="header">
- <td>网页搜索
- <script language="JavaScript" type="text/JavaScript">
- function dosubmit()
- {
- 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/website.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.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?word="+form1.key.value,"mspg6");
- if(form1.abc12.checked) window.open("http://bingle.pku.edu.cn/scripts/ftp_search.exe?cdtype=GB&word="+form1.key.value,"mspg12");
- if(form1.abc14.checked) window.open("http://cns.3721.com/cns.dll?fw=1&name="+form1.key.value,"mspg14");
- return false;
- }
- </script></td>
- <td>软件搜索
- <script language="JavaScript" type="text/JavaScript">
- function submitsoft()
- {
- if(form2.abc0.checked) window.open("http://search.onlinedown.net/search.asp?keyword="+form2.key.value,"mspg0");
- if(form2.abc1.checked) window.open("http://www.skycn.com/search.php?sor=00&ss_name="+form2.key.value,"mspg1");
- if(form2.abc2.checked) window.open("http://www8.pconline.com.cn/download/newswsearch.phtml?j=mh&t=software&st="+form2.key.value,"mspg2");
- if(form2.abc3.checked) window.open("http://download.pchome.net/php/search.php?pid=0&searchstr="+form2.key.value,"mspg3");
- if(form2.abc4.checked) window.open("http://download.yesky.com/servlet/mydown.yeskydown?tag=6&nameField0=NAME&searchName="+form2.key.value,"mspg4");
- if(form2.abc5.checked) window.open("http://soft.fjii.com/softlist.php?strKey="+form2.key.value,"mspg5");
- if(form2.abc6.checked) window.open("http://download.enet.com.cn/search.php?keyword="+form2.key.value,"mspg6");
- if(form2.abc8.checked) window.open("http://download.com.com/3120-20-0.html?qt="+form2.key.value,"mspg8");
- if(form2.abc9.checked) window.open("http://search.mydrivers.com/scripts/search.dll?mode=mode&item="+form2.key.value,"mspg9");
- return false;
- }
- </script></td>
- <td>图片歌曲搜索
- <script language="JavaScript" type="text/JavaScript">
- function submitimg()
- {
- if(form3.abc9.checked) window.open("http://www.google.com/images?hl=zh-CN&lr=lang_zh-CN&q="+form3.key.value,"mspg9");
- if(form3.abc10.checked) window.open("http://pic.sina.com.cn/cgi-bin/retr/search?query="+form3.key.value,"mspg10");
- if(form3.abc11.checked) window.open("http://www.baidu.com/i?ct=201326592&cl=2&lm=-1&tn=baiduimage&word="+form3.key.value,"mspg11");
- if(form3.abc13.checked) window.open("http://flash.baidu.com/wstsearch?tn=flash&sort=time&rn=10&pn=0&cl=3&f=8&ct=33554432&word="+form3.key.value,"mspg13");
- return false;
- }
- </script></td>
- <td>注册码搜索
- <script language="JavaScript" type="text/JavaScript">
- function submitsong()
- {
- if(form4.abc7.checked) window.open("http://mp3search.baidu.com/wstsearch?tn=baidump3&ct=134217728&lm=-1&rn=&word="+form4.key.value,"mspg7");
- if(form4.abc8.checked) window.open("http://search.sogua.com/search/search.asp?fmp3=1&frm=1&fwma=1&fasf=1&go.x=25&go.y=19&key="+form4.key.value,"mspg8");
- if(form4.abc9.checked) window.open("http://mp3search.baidu.com/wstsearch?tn=baidump3lyric&ct=150994944&lm=-1&rn=&word="+form4.key.value,"mspg9");
- return false;
- }
- </script></td>
- </tr>
- <tr>
- <td rowspan="2" valign="top" bgcolor="{ALTBG2}"><table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" class="smalltxt">
- <FORM name=form1 onsubmit=return(dosubmit())>
- <TBODY>
- <TR><TD colSpan=2 height=30><INPUT onmouseover=this.focus() onfocus=this.select() onclick="javascript:(document.form1.key.value='')" size=12 value=请输入关键字 name=key>
- <INPUT type=submit value=搜索 name=B2></TD></TR>
- <TR><TD height=20><INPUT type=checkbox value=3721 name=abc4> google</TD>
- <TD height="20"><INPUT name=abc6 type=checkbox value=google checked> 百度</TD></TR>
- <TR><TD height=20><INPUT type=checkbox value=sina name=abc0> 新浪</TD>
- <TD height="20"><INPUT type=checkbox value=yahooe name=abc5> Yahoo</TD></TR>
- <TR><TD height=20><INPUT type=checkbox value=sohu name=abc1> 搜狐</TD>
- <TD height="20"><INPUT type=checkbox value=yahoo name=abc2> 中文雅虎</TD></TR>
- <TR><TD height=20><INPUT type=checkbox value=baidump3 name=abc14> 3721</TD>
- <TD height="20"><INPUT type=checkbox value=baidump3 name=abc12> 天网搜索</TD></TR>
- </form></table></td>
-
- <td rowspan="2" bgcolor="{ALTBG2}"><table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" class="smalltxt">
- <FORM name=form2 onsubmit=return(submitsoft())>
- <TBODY>
- <TR><TD height=30 colSpan=2 ><INPUT onmouseover=this.focus() onfocus=this.select() onclick="javascript:(document.form2.key.value='')" size=12 value=软件搜索 name=key>
- <INPUT type=submit value=软件搜索 name=B1></TD></TR>
- <TR><TD width="50%" height=20><INPUT type=checkbox CHECKED value=sina name=abc0>华军软件园</TD>
- <TD><INPUT type=checkbox value=sohu name=abc1>天空软件</TD></TR>
- <TR><TD width="50%" height=20><INPUT type=checkbox value=yahoo name=abc2>太平洋软件</TD>
- <TD><INPUT type=checkbox value=yeah name=abc3>电脑之家</TD></TR>
- <TR><TD width="50%" height=20><INPUT type=checkbox value=3721 name=abc4> 天极网下载</TD>
- <TD><INPUT type=checkbox value=yahooe name=abc5>福建热线</TD></TR>
- <TR><TD width="50%" height=20><INPUT type=checkbox value=google name=abc6>eNet下载</TD>
- <TD><INPUT type=checkbox value=baidump3 name=abc9>驱动之家</TD></TR>
- <TR><TD colSpan=2 height=20><INPUT type=checkbox value=baidump3 name=abc8>DownLoad.COM(全球)</TD></TR>
- </FORM>
- </table></td>
-
- <td bgcolor="{ALTBG2}"><table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" class="smalltxt">
- <FORM name=form3 onsubmit=return(submitimg())>
- <TBODY>
- <TR><TD colSpan=2 height=30><INPUT onmouseover=this.focus() onfocus=this.select() onclick="javascript:(document.form3.key.value='')" size=12 value=图片搜索 name=key>
- <INPUT type=submit value=图片搜索 name=B2></TD></TR>
- <TR><TD width="50%" height=20><INPUT type=checkbox CHECKED value=baidump3 name=abc9> google</TD>
- <TD height="20"><INPUT type=checkbox value=baidump3 name=abc10>新浪</TD></TR>
- <TR><TD width="50%" height=20><INPUT type=checkbox value=baidump3 name=abc11>百度</TD>
- <TD height="20"><INPUT type=checkbox value=baidump3 name=abc13>FLASH </TD></TR>
- </FORM>
- </table></td>
- <FORM action=http://astalavista.box.sk/cgi-bin/robot method=get target="_blank">
- <td align="center" valign="top" bgcolor="{ALTBG2}"><INPUT name=srch size="12" maxLength=100>
- <br><INPUT type=submit value="注册码搜索" name=submit></td></FORM>
- </tr>
- <tr>
- <td valign="top" bgcolor="{ALTBG2}"><table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" class="smalltxt">
- <FORM name=form4 onsubmit=return(submitsong())>
- <TBODY>
- <TR><TD colSpan=2 height=30><INPUT onmouseover=this.focus() onfocus=this.select() onclick="javascript:(document.form4.key.value='')" size=12 value=mp3歌曲歌词 name=key>
- <INPUT type=submit value=mp3搜索></TD></TR>
- <TR><TD width="50%" height=20><INPUT type=checkbox value=baidump3 name=abc7>百度mp3</TD>
- <TD height="20"><INPUT type=checkbox value=baidump3 name=abc8>搜刮mp3</TD></TR>
- <TR><TD width="50%" height=20><INPUT name=abc9 type=checkbox value=baidump3 checked>歌词</TD>
- <TD height="20"> </TD></TR>
- </FORM>
- </table></td>
- <td bgcolor="{ALTBG2}">
- 收集整理: <a href="$siteurl" target="_blank">$sitename</a><br>
- 制作日期: 2005-1-15 21:20<br>
- 更新时间:
- <!-- #BeginDate format:IS1a -->2005-1-15 21:20 <!-- #EndDate --></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <!--{/if}-->
复制代码
[ 本帖最后由 lu5266 于 2005-12-21 19:26 编辑 ] |