欢迎来到258分享网,纯净的网络源码分享基地!

258资源分享网

全部作品
全部作品
网站源码
微信源码
素材特效
源码插件
视频教程
建站学院
热门搜索: 织梦  农业种植  农业  安全设置  官方
258资源分享 > 建站学院 > 织梦教程 > 把dedecms的搜索框,改为自己的多功能搜索框...

推荐下载

HTML5响应式自适应网咯设计

2020-05-12   浏览:740

高端HTML5响应式企业通用网

2020-05-06   浏览:521

html5响应式外贸网站英文版

2020-05-08   浏览:510

HTML5自适应律师工作室类网

2020-04-04   浏览:505

HTML5影视传媒文化公司类网

2020-05-12   浏览:502

把dedecms的搜索框,改为自己的多功能搜索框...

发布时间:2020-08-07  

<!--body {font-size: 12px}-->
把dedecms的搜索框,改为自己的多功能搜索框!

把 head.htm 的 <form>与</form>之间的代码,替换为以下代码:

<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("?q1="+"&q6=blog.sina.com.cn","a2"); if(document.bf.sto[2].checked)window.open("?hl=zh-CN&q="+"&as_sitesearch=blog.sina.com.cn","a3"); // if(document.bf.sto[3].checked)window.open("?id=1&search="+$,"a4"); // if(document.bf.sto[4].checked)window.open("?word="+$,"a5"); // if(document.bf.sto[5].checked)window.open("?kw="+"&submit=search","a6"); return false} </script> <div > <h4>搜索</h4> <!-- <input name="key" value="(输入搜索内容……)"> --> <input name="key" 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.dede58.com/a/dedejq/"http:/www.baidu.com">百度</a> <input name=sto type=radio value="2"><a href=http://www.dede58.com/a/dedejq/"http:/www.google.cn">Google</a> <!-- <input name=sto type=radio value="3"><a href=http://www.dede58.com/a/dedejq/"http:/www.gougou.com">狗狗</a> <input name=sto type=radio value="4"><a href=http://www.dede58.com/a/dedejq/"http:/map.baidu.com">地图</a> <input name=sto type=radio value="5"><a href=http://www.dede58.com/a/dedejq/"http:/baike.baidu.com">百科</a> --> <button type="submit" >搜索</button> </div> </form>  


其中,“blog.sina.com.cn” 换成你自己的独立域名

原来的以下这段,似乎是用不上了,本人这样屏蔽掉:

<!--
<div >
<h4>热门标签:</h4>
<ul>
{dede:tag row='10' getall='1' sort='month'}
<li><a href='[field:link/]'>[field:tag /]</a></li>
{/dede:tag}
</ul>
</div>
-->