導讀:織夢技術織夢技術織夢5.6的默認搜索框是這樣子的,包括站內搜索、google搜索。 那么我們想要加入百度搜索功能需要怎么做呢? 請看 織夢DeDeCms 5.6搜索框變?yōu)榘俣榷嗄0蹇棄鬱ede模板堂。

織夢5.6的默認搜索框是這樣子的,包括站內搜索、google搜索。
那么我們想要加入百度搜索功能需要怎么做呢?
請看織夢DeDeCms 5.6搜索框變?yōu)榘俣榷喙δ芩阉骺虻男薷姆椒ǎ?/p>
把head.htm的<form>與</fdede后臺模板orm>之間的代碼,替換為以下代碼:
<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=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"&nbs織夢文章模板p;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">
關鍵詞標簽: 標簽 織夢 多功能
聲明: 本文由我的SEOUC技術文章主頁發(fā)布于:2023-07-21 ,文章織夢DeDeCms 5.6搜索框變?yōu)榘俣榷喙δ芩阉骺虻男薷闹饕v述多功能,標簽,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: