免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 发帖

【网站建设】站内搜索框代码

1、空白搜索框
( u# ^5 G8 E# ]$ s4 p9 `) t6 t0 p) G( a' j
<form class="searchform" method="post" action="search.php" target="_blank">
5 f- ]# N9 L& k+ T+ _+ h( X( m/ K# g<input type="hidden" name="formhash" value="fb25ecf8" />5 B; n8 O9 k" @  h) x" i; C
<p class="searchkey">/ O& k2 E4 O* q0 v' V5 ~
<input type="text" id="srchtxt" name="srchtxt" prompt="search_kw" size="45" maxlength="40" value="" class="txt" tabindex="1" />! ~8 ?9 D( n# j5 ^; G( a/ |
<script type="text/javascript">$('srchtxt').focus();</script>
6 @3 d( |% {5 g8 E<select name='srchtype'>& V! Q4 r  A  C  u& y$ K$ i
<option value="title">标题</option>& ]. X( e5 ?- n1 h
<option value="fulltext">全文</option></select>( L- X( x$ ^. q2 |9 S1 b
<button type="submit" name="searchsubmit" id="searchsubmit" value="true" prompt="search_submit"> 搜 索 </button></p>5 E5 t3 ^/ b8 b8 @5 q& @/ N, e. x
! I' j+ e3 _; l; {: {

) [/ t" V7 `( t4 v2、搜索框内有 请输入关键字1 |5 N3 z4 r& ]+ c* `( g0 ~$ A6 F
; a2 u: ~# }, n/ _& U- u6 e
<form class="searchform" method="post" action="search.php" target="_blank">' h% F, E& r: Q. \9 d
<input type="hidden" name="formhash" value="fb25ecf8" /># @7 b6 M- V0 ~& t3 F( U; q
<p class="searchkey">
, M9 F3 j& R! g; C2 b4 H% y$ N<input type="text" id="srchtxt" name="srchtxt" prompt="search_kw" size="45" maxlength="40" value="请输入搜索关键词"& [) Q1 ~+ h) l7 g2 Q
<script type="text/javascript"></script>
, ^8 K' S% |% }: h3 l<select name='srchtype'>$ M, @1 ~9 ?0 Q+ z- f9 Z
<option value="title">标题</option>( g6 f1 z+ a* [; [
<option value="fulltext">全文</option></select># @) k1 h: o  K' Q7 O9 X9 I
<button type="submit" name="searchsubmit" id="searchsubmit" value="true" prompt="search_submit">搜索</button>* J5 M9 v& n0 b, P
</p>
分享到: QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
【舞蹈伴奏网】网上有的我们都有,网上没有的我们也有!   24小时在线客服QQ914471079

返回列表