Warning: Undefined array key "night" in /www/wwwroot/dhaomu.com/wp-content/themes/b2/header.php on line 18

织梦搜索提交用a便签替换button标签方法

dedecms教程:织梦教程搜索提交用a便签替换button标签方法!我们用织梦模版建站时,织梦默认搜索提交标签是button,有时候我们不要botton样式,就用a便签来替换。

dedecms教程:织梦教程搜索提交用a便签替换button标签方法!我们用织梦模版建站时,织梦默认搜索提交标签是button,有时候我们不要botton样式,就用a便签来替换。

原理是:在a便签里加个onclick属性,在前面form里加入id='search_form',直接上一个案例代码,就知道怎么来套用了

<form name="formsearch"  action="/plus/search.php"   id='search_form'>
                    <div class="searchform">
                    <input type="hidden"   name="kwtype"   value="0">
    <input name="q"   type="text"  class="input"   id="search-keyword"   value="在这里搜索..."   onfocus="if(this.value=='在这里搜索...'){this.value='';}" onblur="if(this.value==''){this.value='在这里搜索...';}" x-webkit-speech="">
                    </div>
                    <div class="search_submit">
                      <a onclick="document.getElementById('search_form').submit();"><img src="/style/picture/search_btn.jpg"   alt="Products Search"></a>
                    </div>
                </form>
温馨提示:
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:duhaomu@163.com,我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持。
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明

给TA赞赏
共{{data.count}}人
人已赞赏
编程技巧

EcShop如何解决IIS服务器导入广告列表乱码

2022-4-3 0:00:00

编程技巧

EcShop通过if判断栏目ID/产品ID的方法

2022-4-29 0:00:00

0 条回复 A文章作者 M管理员

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914
----《》
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索