網(wǎng)站模板制作中會(huì)遇到需要單獨(dú)搜索內(nèi)容的特殊要求,此時(shí)可使用以下搜索框代碼。
內(nèi)容搜索框:
<form name='search' action="<?php echo url('archive/search');?>" onsubmit="search_check();" method="post"> <input type="text" name="keyword" value="請(qǐng)輸入查詢信息" onfocus="if(this.value=='請(qǐng)輸入查詢信息') {this.value=''}" onblur="if(this.value=='') this.value='請(qǐng)輸入查詢信息'" class="s_text" /> <input name='submit' type="submit" value="" align="middle" class="s_btn" /> </form>
防偽碼搜索框:
<form name='search' action="<?php echo url('archive/ecodingsearch');?>" onsubmit="search_check();" method="post"> <input type="text" name="keyword" value="請(qǐng)輸入防偽碼查詢" onfocus="if(this.value=='請(qǐng)輸入防偽碼查詢') {this.value=''}" onblur="if(this.value=='') this.value='請(qǐng)輸入防偽碼查詢'" class="s_text" /> <input name='submit' type="submit" value="" align="middle" class="s_btn" /> </form>
郵件訂閱輸入框:
<form name="listform" id="listform" action="<?php echo url('archive/email');?>" method="post"> <input type="text" name="email" id="email" value=" 請(qǐng)輸入訂閱郵箱 " onfocus="if(this.value==' 請(qǐng)輸入訂閱郵箱 ') {this.value=''}" onblur="checkEmail(this)" class="s_text" /> <input type="submit" align="absmiple" name='submit' value=" " class="s_btn" /> </form>