SDCMS 搜索代码问题,如何设置?
<divclass="width"id="top_search"><dlclass="top_search"><formonSubmit="returnchecksear...
<div class="width" id="top_search">
<dl class="top_search">
<form onSubmit="return checksearch(this);">
<dt><input type="text" name="key" class="search_input" onFocus="if (value =='请输入关键字'){value =''}" onBlur="if (value ==''){value='请输入关键字'}" value=" http://www.fag-skf-nsk.com/ " size="40" /></dt>
<dt><input type="submit" value="搜索" class="search_bnt" /></dt>
</form>
<dt><span><font color="#0000CC">热门搜索:</font></span>{sdcms:loop top="20" table="sd_search" order="hits desc,id desc"}<a href="{sdcms:root}search/?/{title function="urlencode"}/" title="{title}">{title len="16"}</a> {/sdcms:loop}</dt>
</dl>
</div>
请讲解一下这段代码,谢谢 展开
<dl class="top_search">
<form onSubmit="return checksearch(this);">
<dt><input type="text" name="key" class="search_input" onFocus="if (value =='请输入关键字'){value =''}" onBlur="if (value ==''){value='请输入关键字'}" value=" http://www.fag-skf-nsk.com/ " size="40" /></dt>
<dt><input type="submit" value="搜索" class="search_bnt" /></dt>
</form>
<dt><span><font color="#0000CC">热门搜索:</font></span>{sdcms:loop top="20" table="sd_search" order="hits desc,id desc"}<a href="{sdcms:root}search/?/{title function="urlencode"}/" title="{title}">{title len="16"}</a> {/sdcms:loop}</dt>
</dl>
</div>
请讲解一下这段代码,谢谢 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询