星联网络专注帝国CMS二次功能插件开发-精品网站模板站长代码素材

  • 最近更新
  • 模板:33
  • 记录:12641|
  • 插件:52|
  • 工具:4|
  • 代码:8|
  • 评论:0

dedecms的整合各大搜索引擎实多功能搜索框的方法

前言

本文主要讲解《dedecms的整合各大搜索引擎实多功能搜索框的方法》的详细内容

不要朋友使用织梦dedecms搭建网站的时候,希望在搜索框里面能整合各大搜索引擎,通过下面方面可以整合各大搜索引擎。 编辑打开模板文件 head.htm,把 之间的代码,替换为以下代码: <form name=bf *****ubmit="bottomForm();return false;"> <script> function bottomForm(){ var $=document.bf.key.value; if(document.bf.sto[0].checked)window.open("./plus/search.php?kwtype=0&keyword="+$,"a1"); if(document.bf.sto[1].checked)window.open("http://www.baidu.com/s?q1="+"&q6=blog.sina.com.cn","a2"); if(document.bf.sto[2].checked)window.open("http://www.google.com/search?hl=zh-CN&q="+"&as_sitesearch=blog.sina.com.cn","a3"); // if(document.bf.sto[3].checked)window.open("http://www.gougou.com/search?id=1&search="+$,"a4"); // if(document.bf.sto[4].checked)window.open("http://map.baidu.com/m?word="+$,"a5"); // if(document.bf.sto[5].checked)window.open("http://bk.baidu.com/?kw="+"&submit=search","a6"); return false} </script> <div class="form"> <h4>搜索</h4> <!– <input name="key" class="search-keyword" value="(输入搜索内容……)"> –> <input name="key" class="search-keyword" value="(输入搜索内容……)" onfocus="if(this.value==’(输入搜索内容……)’){this.value=”;}" onblur="if(this.value==”){this.value=’(输入搜索内容……)’;}"> <input name=sto type=radio value="0" checked=true>本站内 <input name=sto type=radio value="1"><a href="http://www.baidu.com">百度</a> <input name=sto type=radio value="2"><a href="http://www.google.cn">Google</a> <!– <input name=sto type=radio value="3"><a href="http://www.gougou.com">狗狗</a> <input name=sto type=radio value="4"><a href="http://map.baidu.com">地图</a> <input name=sto type=radio value="5"><a href="http://baike.baidu.com">百科</a> –> <button type="submit" class="search-submit">搜索</button> </div> </form> 其中,“blog.sina.com.cn” 换成你自己的独立域名。 原来的以下这段,似乎是用不上了,本人这样屏蔽掉: <!– <div class="tags"> <h4>热门标签:</h4> <ul> {dede:tag row=’10′ getall=’1′ sort=’month’} <li><a href=’[field:link/]‘>[field:tag /]</a></li> {/dede:tag} </ul> </div> –>

本网刊登的文章均仅代表作者个人观点,并不代表本网立场。文中的论述和观点,敬请读者注意判断。

本文地址:http://www.xlkjgs.com/notes/web/7141.html

以上内容由本站整理呈现,请务必在转载分享时注明本文地址!如对内容有疑问,请联系我们,谢谢!

星联网络

星联网络是中国最具实战的互联网创业者的知识服务商,这里有互联网行业动态,网络推广,SEO优化,SEM优化,ESC配置,行业经验分型,互联网项目,微信营销、淘宝客赚钱、新媒体营销、京东运营、跨境电商等众多互联网营销知识分享

站长运营站长必备网站运营之道才能长久发展