更改dedecms的搜索框為多功能搜索,DEDE技術
導讀:DEDE技術DEDE技術把 head.htm 的 form與/form之間的代碼,替換為以下代碼: form name=bf onSubmit=bottomForm();return 免費織夢模板dede免費模板。
把 head.htm 的 <form>與</form>之間的代碼,替換為以下代碼:
<form name=bf onSubmit="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=www.5loveb.com","a2"); if(document.bf.sto[2].checked)window.open("http://www.google.com/search?hl=zh-CN&q="+"&as_sitesearch=www.5loveb.com","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>
<form name=bf onSubmit="bottomForm();return false;"> <script> function bottomForm(){ var $=documentdede58模板.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=www.5loveb.com","a2"); if(document.bf.sto[2].checked)window.open("http://www.google.com/search?hl=zh-CN&q="+"&as_sitesearch=www.5loveb.com","a3"); // if(document.bf.sto[3].checked)window.open("http://www.gougou.com/search?id=1&search="+$,"a4"); // if(document.dede模板免費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>
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-22 ,文章更改dedecms的搜索框為多功能搜索,DEDE技術主要講述多功能,標簽,搜索網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_34408.html