校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁(yè) > 網(wǎng)站建設(shè) > 建站知識(shí) > 更改dedecms的搜索框?yàn)槎喙δ芩阉?/div>

更改dedecms的搜索框?yàn)槎喙δ芩阉?/h1>

POST TIME:2018-03-15 21:17

把 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="(輸入搜索內(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=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 $=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="(輸入搜索內(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=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>




  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266
主站蜘蛛池模板: 驻马店市| 丰县| 临桂县| 安阳县| 宁远县| 股票| 台南县| 家居| 澄城县| 佛山市| 壤塘县| 霍山县| 东台市| 沾益县| 中宁县| 建平县| 沙田区| 乾安县| 德阳市| 陕西省| 宜黄县| 宜宾市| 广西| 承德县| 洛宁县| 长兴县| 通许县| 左权县| 长汀县| 炉霍县| 宁蒗| 华蓥市| 大姚县| 会昌县| 灯塔市| 简阳市| 桐柏县| 芦山县| 射阳县| 长春市| 中宁县|