网站首页   |    最新通知   |    建站技巧   |    优化网页   |    常见问题   |    常用软件   |    网络知识   |    网络推广   |    邮箱管理   |    关于域名   |    销售心得   |    D W 知识   |    P S 教程   |    网站备案   |    网页代码   |    成功案例   |    联系总部   |    提出建议   |    在线交流   |    自考成考   |    网店推广   |    开店技巧   |    开店研究   |    免费开店   |   
  鸿远首页
  社区论坛
  鸿远博客
建站技巧
站内搜索
搜索内容
搜索类别
友情链接
综合搜索引擎代码

样式一:

Google 百度 雅虎 电信114 搜狗 新浪 网易 腾讯SoSo 中搜 MSN tom


代码:

以下是代码片段:

  <TBODY>
        <tr>
         <TD align=middle>

         </HTML>
 
<SCRIPT language=javascript>
function index_search(){
var v=f.k.value
if(f.o[0].checked==true)
window.open("http://www.google.com/search?hl=zh-CN&q="+v);
if(f.o[1].checked==true)
window.open("http://www.baidu.com/s?wd="+v);
if(f.o[2].checked==true)
window.open("http://www.yahoo.com.cn/search?p="+v);
if(f.o[3].checked==true)
window.open("http://search.114.vnet.cn/search_web.html?id=1&fm=index&bt=s&st=web&kw="+v);
if(f.o[4].checked==true)
window.open("http://www.sogou.com/web?query="+v);
if(f.o[5].checked==true)
window.open("http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey="+v);
if(f.o[6].checked==true)
window.open("http://so.163.com/search?q="+v);
if(f.o[7].checked==true)
window.open("http://www.soso.com/q?pid=s.idx&w="+v);
if(f.o[8].checked==true)
window.open("http://p.zhongsou.com/p?w="+v);
if(f.o[9].checked==true)
window.open("http://cnweb.search.live.com/results.aspx?q="+v);
if(f.o[10].checked==true)
window.open("http://search.tom.com/s.php?f=8&cl=3&f=8&edt=0&w="+v);

return false;}
//-->
</SCRIPT>

         <META content="MSHTML 5.00.3700.6699" name=GENERATOR>
         <CENTER>
         <div align="center">
          <TABLE id=table966 border=0 cellspacing="0" cellpadding="0" width="944">
           <TBODY>
            <FORM name=f onsubmit=return(index_search())>
             <TR>
              <TD noWrap>
              <INPUT class=input_box maxLength=64 size=26 value=网页特效代码
      name=k> <INPUT type=submit value=搜一下 name=submit> <font color="#008000">
              <INPUT type=radio value=0 name=o>  Google
              <INPUT type=radio value=2 name=o checked> 百度
      
              <INPUT type=radio value=3 name=o> 雅虎 
              <INPUT type=radio value=4 name=o> 电信114
                   <INPUT type=radio value=512 name=o> 搜狗
   
    
              <INPUT type=radio value=513 name=o> 新浪
 
              <INPUT type=radio value=514 name=o> 网易
     
  
              <INPUT type=radio value=515 name=o> 腾讯SoSo 
 
 
                 <INPUT type=radio value=8 name=o> 中搜  


   
              <INPUT type=radio value=9 name=o> MSN 
                  <INPUT type=radio value=10 name=o> tom
              </tr>
             </tr>
           </TBODY>
          </TABLE>
          
          </div>
      </table>

      </HTML></td>
     </tr>
    </table>


样式二:
综合搜索引擎
网页代码 百度 google mp3 歌词 图片 百科 知道 新闻
站内 词典 地图 文档 软件 雅虎 爱问 搜狗

代码:

以下是代码片段:

<script>function search4()
{if(form1.abc0.checked)
window.open("http://www.iask.com/s?k="+form1.key.value,"mspg0");
if(form1.abc1.checked)
window.open("http://www.sogou.com/web?sogouhome=&shuru=shou&query="+form1.key.value,"mspg1");
if(form1.abc2.checked)
window.open("http://cn.search.yahoo.com/search?p="+form1.key.value,"mspg2");
if(form1.abc3.checked)
window.open("http://www.skycn.com/search.php?sor=00&ss_name="+form1.key.value,"mspg3");
if(form1.abc4.checked)
window.open("http://www.google.cn/search?hl=zh-CN&q="+form1.key.value,"mspg4");
if(form1.abc5.checked)
window.open("http://zhidao.baidu.com/q?ct=17&pn=0&tn=ikaslist&rn=10&word="+form1.key.value,"mspg5");
if(form1.abc6.checked)
window.open("http://www.baidu.com/s?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");

if(form1.abc9.checked)
window.open("http://mp3search.baidu.com/wstsearch?tn=baidump3lyric&ct=150994944&lm=-1&rn=&word="+form1.key.value,"mspg9");
if(form1.abc10.checked)
window.open("http://www.baidu.com/baidu?ft=all&q1="+form1.key.value,"mspg10");
if(form1.abc11.checked)
window.open("http://www.baidu.com/i?ct=201326592&cl=2&lm=-1&tn=baiduimage&word="+form1.key.value,"mspg11");
if(form1.abc12.checked)
window.open("http://www.baidu.com/s?tn=sitehao123&word="+form1.key.value+"%20site%3Awww.7stk.com","mspg12");
if(form1.abc13.checked)
window.open("http://baike.baidu.com/w?ct=17&lm=0&tn=baiduWikiSearch&pn=0&rn=10&word="+form1.key.value+"&submit=search","mspg13");
if(form1.abc14.checked)
window.open("http://map.baidu.com/m?word="+form1.key.value,"mspg14");
if(form1.abc15.checked)
window.open("http://news.baidu.com/ns?cl=2&rn=20&tn=news&word="+form1.key.value,"mspg15");
if(form1.abc16.checked)
window.open("http://www.baidu.com/baidu?ie=gb2312&bs=&sr=&z=&ct=1048576&cl=3&f=8&word="+form1.key.value,"mspg16");
return false;}</script>
<table border=0 cellspacing=0 width="87%" bordercolor=#99DF95 cellpadding=0>
<tr align="center">
<td height="15" colspan="2">综合搜索引擎</td>
</tr>
<form name=form1 onsubmit=return(search4())><tr><td width="312" rowspan="2" align="right" valign="top">
 <font size="2"><a target="_blank" href="http://www.7stk.com">
 <font color="#FF0000">网页代码</font></a></font>
<input type=text name=key size=26 onMouseOver=this.focus() onFocus=this.select() style="margin-bottom:-4px;" value="关键字">
<input type=submit style="margin-bottom:-4px;COLOR: rgb(0,0,0);" FONT-SIZE: 9pt value=搜索 name=B2>

</td>
<td ><input type=checkbox name=abc6 value=google checked><a href=http://www.baidu.com/>百度</a>
<input type=checkbox name=abc4 value=3721><a href=http://www.google.cn>google</a>
<input type=checkbox name=abc7 value=baidump3><a href=http://mp3.baidu.com/>mp3</a>
<input type=checkbox name=abc9 value=baidump3><a href=http://geci.baidu.com/>歌词</a>
<input type=checkbox name=abc11 value=baidump3><a href=http://image.baidu.com/>图片</a>
<input type=checkbox name=abc13 value=baidubaike><a href=http://baike.baidu.com/>百科</a>
<input name=abc5 type=checkbox  value=ikaslist><a href=http://zhidao.baidu.com/>知道</a>

<input name=abc15 type=checkbox  value=baidunews><a href=http://news.baidu.com/>新闻</a></td>
</tr><tr><td style="padding-top:3px;"><input type=checkbox name=abc12 value=hao123>站内
<input type=checkbox name=abc16 value=baidudict><a href=http://dict.baidu.com/>词典</a>
<input type=checkbox name=abc14 value=baidump3><a href=http://map.baidu.com/>地图</a>
<input type=checkbox name=abc10 value=baidufile><a href=http://file.baidu.com/>文档</a>
<input type=checkbox name=abc3 value=yeah><a href=http://www.skycn.com/>软件</a>

<input type=checkbox name=abc2 value=yahoo><a href=http://cn.yahoo.com/>雅虎</a>
<input type=checkbox name=abc0 value=iask><a href=http://www.iask.com/>爱问</a>
<input type=checkbox name=abc1 value=sohu><a href=http://www.sogou.com/>搜狗</a></td>
</tr>

</form></table></td>
</tr></table>


样式三:
集成搜索
百度Google雅虎新浪搜狐网易Yahoo手机铃声FLASHMP3

代码:

以下是代码片段:

   <script>
<!--//Begin JavaScript Source
function CheckAll(form)
{
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if (e.name != 'chkall')
e.checked = form.chkall.checked;
}
}
function netsearch(formname)
{
var Sina1
var Sina2
var Sohu1
var Sohu2
var Netease1
var Netease2
var baidu1
var baidu2
var mp31
var mp32
var sbox1
var sbox2
var flash1
var flash2
var YahooC1
var YahooC2
var Google1
var Google2
var tom1
var tom2
var TEXT
var noENGINE
var haveTEXT

TEXT=formname.TEXT.value;
noEngine=true;
haveTEXT=true;

if (TEXT=="")

Sina1=formname.Sina.checked;
Sina2="http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey="+TEXT;
if (Sina1)
{
noEngine=false
if (haveTEXT)
{
newWindow=window.open(Sina2, "Sina","toolbar,location,directories,status,menubar,scrollbars,resizable=1")
}
}

Sohu1=formname.Sohu.checked;
Sohu2="http://site.search.sohu.com/sitesearch.jsp?key_word="+TEXT;
if (Sohu1)
{
noEngine=false
if (haveTEXT)
{
newWindow=window.open(Sohu2, "Sohu","toolbar,location,directories,status,menubar,scrollbars,resizable=1")
}
}
Netease1=formname.Netease.checked;
Netease2="http://nisearch.163.com/Search?q="+TEXT;
if (Netease1)
{
noEngine=false
if (haveTEXT)
{
newWindow=window.open(Netease2, "Netease","toolbar,location,directories,status,menubar,scrollbars,resizable=1")
}
}

baidu1=formname.baidu.checked;
baidu2="http://www1.baidu.com/baidu?myselectvalue=0&tn=net900&word="+TEXT;
if (baidu1)
{
noEngine=false
if (haveTEXT)
{
newWindow=window.open(baidu2, "baidu","toolbar,location,directories,status,menubar,scrollbars,resizable=1")
}
}
 
mp31=formname.mp3.checked;
mp32="http://mp3search.baidu.com/wstsearch?tn=baidump3&ct=134217728&word="+TEXT;
if (mp31)
{
noEngine=false
if (haveTEXT)
{
newWindow=window.open(mp32, "mp3","toolbar,location,directories,status,menubar,scrollbars,resizable=1")
}
}
 
YahooC1=formname.YahooC.checked;
YahooC2="http://cn.search.yahoo.com/search/cn?p="+TEXT;
if (YahooC1)
{
noEngine=false
if (haveTEXT)
{
newWindow=window.open(YahooC2, "YahooC", "toolbar,location,directories,status,menubar,scrollbars,resizable=1")
}
}


Google1=formname.Google.checked;
Google2="http://www.google.com/search?hl=zh-CN&q="+TEXT;
if (Google1)
{
noEngine=false
if (haveTEXT)
{
newWindow=window.open(Google2, "n","toolbar,location,directories,status,menubar,scrollbars,resizable=1")
}
}
 

sbox1=formname.sbox.checked;
sbox2="http://www.yahoo.com.cn/search?pid=1073_1006&needbid=&ei=GBK&source=3721_union&p="+TEXT;
if (sbox1)
{
noEngine=false
if (haveTEXT)
{
newWindow=window.open(sbox2, "sbox","toolbar,location,directories,status,menubar,scrollbars,resizable=1")
}
}
tom1=formname.tom.checked;
tom2="http://sms2.ctn.com.cn/smslist/smsearch.php?user_id=67&inc=3&keyword="+TEXT;
if (tom1)
{
noEngine=false
if (haveTEXT)
{
newWindow=window.open(tom2, "tom","toolbar,location,directories,status,menubar,scrollbars,resizable=1")
}
}
flash1=formname.flash.checked;
flash2="http://mp3.baidu.com/m?f=ms&tn=baidump3&ct=134217728&lf=&rn=&lm=6&word="+TEXT;
if (flash1)
{
noEngine=false
if (haveTEXT)
{
newWindow=window.open(flash2, "flash","toolbar,location,directories,status,menubar,scrollbars,resizable=1")
}
}

if (noEngine)

}
//End JavaScript Source -->
</script>
<table style='width:705px; background-color: #FFFF00; layer-background-color: #CCCCCC; border: 1px none #000000' id="table1"><tr><td><font style='FONT-SIZE:9pt'>集成搜索</td><td><form name=engines onSubmit=netsearch(engines)><input style='background-color: FDF3D1; border: 1px solid #FBB723' name=TEXT size=10 maxlength=200 value=> <input type=button style='BACKGROUND-COLOR:#ffffff;BORDER-BOTTOM:red 1px solid;BORDER-LEFT:red 1px solid;BORDER-RIGHT:red 1px solid;BORDER-TOP:red 1px solid;COLOR:#000000;FONT-SIZE:9pt' value=搜索 name=Submit onClick=netsearch(engines)><font style='FONT-SIZE:9pt'> <input type=Checkbox name=baidu checked>百度<input type=Checkbox name=Google checked>Google<input type=Checkbox name=YahooC>雅虎<input type=Checkbox name=Sina>新浪<input type=Checkbox name=Sohu>搜狐<input type=Checkbox name=Netease>网易<input type=Checkbox name=sbox>Yahoo<input type=Checkbox name=tom>手机铃声<input type=Checkbox name=flash>FLASH<input type=Checkbox name=mp3>MP3</font></td></form></tr></table>
   <p>


使用方法:

将代码添加至对应栏目在线编辑器代码视图的合适位置既可.

[文章评论(0)] [ 点击数:] [打印本网页] [关闭本窗口]
相关内容
查无记录

Copyright © 2008-2010    All Rights Reserved     鸿远建站网版权所有
  地址: 广东东莞市长安颐和商务中心    Email: web@cnhynet.com    站长QQ服务:鸿远在线服务
中华人民共和国 信息产业部备案号:ICP: 粤07030154号   鸿远建站联盟网    网站管理