主页 > 网站建设 > 建站知识 > dede织梦搜索框制作方法合集

dede织梦搜索框制作方法合集

POST TIME:2017-11-13 14:46

 

<form method="post" action="{dede:global.cfg_basehost/}/plus/search.php" name="formsearch" class="search"><input type="hidden" value="www.dedecms.com" name="domains"><input type="hidden" value="0" name="kwtype">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="65"> </td>
<td width="146" valign="middle"><input class="keywords" name="q" type="text" id="search"value="请输入搜索内容...">
<input type="hidden" value="titlekeyword" name="searchtype" >
</td>
<td width="5"> </td>
<td> <button type="submit" class="submit"></button> </td>
</tr>
</table>
</form>


  1. <formmethod="post"action="{dede:global.cfg_basehost/}/plus/search.php"name="formsearch"class="search"><inputtype="hidden"value="www.dedecms.com"name="domains"><inputtype="hidden"value="0"name="kwtype">
  2. <tablewidth="100%"height="100%"border="0"cellspacing="0"cellpadding="0">
  3. <tr>
  4. <tdwidth="65">&nbsp;</td>
  5. <tdwidth="146"valign="middle">
  6. <inputclass="keywords"name="q"type="text"id="search"value="请输入搜索内容..."onFocus="if(this.value=='请输入搜索内容...'){this.value='';}"onBlur="if(this.value==''){this.value='请输入搜索内容...';}">
  7. <inputtype="hidden"value="titlekeyword"name="searchtype">
  8. </td>
  9. <tdwidth="5">&nbsp;</td>
  10. <td><buttontype="submit"class="submit"></button></td>
  11. </tr>
  12. </table>
  13. </form>

如果需要将“搜索按钮”修改为图片,则使用“<input type="image" src="images/index_ss.jpg" />”即可



收缩
  • 微信客服
  • 微信二维码
  • 电话咨询

  • 400-1100-266