dedecms的整合各大搜索引擎實(shí)多功能搜索框的方法
導(dǎo)讀:dedecmsdedecms不要朋友使用織夢(mèng)搭建網(wǎng)站的時(shí)候,希望在搜索框里面能整合各大搜索引擎,通過(guò)下面方面可以整合各大搜索引擎。編輯打開(kāi)模板文件 head.htm,把與之間的代碼,替換為織夢(mèng)模板下載dede手機(jī)模板。
不要朋友使用織夢(mèng)搭建網(wǎng)站的時(shí)候,希望在搜索框里面能整合各大搜索引擎,通過(guò)下面方面可以整合各大搜索引擎。 編輯打開(kāi)模板文件 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","dede模板堂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="(輸入搜索內(nèi)容……)"> –> <input name="key" class="search-keyword" value="(輸入搜索內(nèi)容……)" onfocus="if(this.value==’(輸入搜索內(nèi)容……)’){this.value=”;}" onblur="if(this.value==”){this.value=’(輸入搜索內(nèi)容……)’;}"> <input name=sto type=radio value="0" checked=true>本站內(nèi) <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=radiodede5.7模板 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技術(shù)文章主頁(yè)發(fā)布于:2023-07-22 ,文章dedecms的整合各大搜索引擎實(shí)多功能搜索框的方法主要講述各大,多功能,搜索網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請(qǐng)保留鏈接: http://www.bifwcx.com/article/web_33591.html
為你推薦與dedecms的整合各大搜索引擎實(shí)多功能搜索框的方法相關(guān)的文章
-
通王TWCMS 2.0.3網(wǎng)站模板程序下載
(126)人喜歡 2024-01-15 -
Windows官方原版在哪里下載
(175)人喜歡 2024-01-15 -
WordPress網(wǎng)站模板發(fā)帖標(biāo)題顏色設(shè)置
(131)人喜歡 2024-01-07 -
修改discuz論壇帖子標(biāo)題80字符的長(zhǎng)度限制
(249)人喜歡 2024-01-07 -
wordpress程序調(diào)用不帶超鏈接的Tag標(biāo)簽
(234)人喜歡 2024-01-05 -
網(wǎng)站在不同時(shí)期需調(diào)整內(nèi)容更新的方向
(112)人喜歡 2023-08-12