繁體
|
簡體
Sclub交友聊天~加入聊天室當版主
(檢舉)
分享
新浪微博
QQ空间
人人网
腾讯微博
Facebook
Google+
Plurk
Twitter
Line
标题:
【网站建设】站内搜索框代码
[打印本页]
作者:
admin
时间:
2014-12-19 20:45
标题:
【网站建设】站内搜索框代码
1、空白搜索框
; t( N& K. o4 D) d- R) l* g% ~: p* g
' ~0 K3 ?1 k/ ~( U2 u
<form class="searchform" method="post" action="search.php" target="_blank">
- k2 `5 Q" w' b1 O* ]# Q; i- z" U
<input type="hidden" name="formhash" value="fb25ecf8" />
2 j% S# ?$ n/ r7 R! a
<p class="searchkey">
! C- A& K8 S) g( d
<input type="text" id="srchtxt" name="srchtxt" prompt="search_kw" size="45" maxlength="40" value="" class="txt" tabindex="1" />
0 b7 o+ c' n% c
<script type="text/javascript">$('srchtxt').focus();</script>
+ o" w+ f% i/ [; q* C% o8 I
<select name='srchtype'>
7 y% I* [! e0 C/ Z
<option value="title">标题</option>
" K2 V+ z; w' n7 w
<option value="fulltext">全文</option></select>
4 x1 ]4 \0 H$ H# c' @
<button type="submit" name="searchsubmit" id="searchsubmit" value="true" prompt="search_submit"> 搜 索 </button></p>
; w$ j- m7 V5 b' H8 b" e3 p
% a9 D9 G( b$ q/ f6 _
2 |1 k2 i7 t& K" M+ B& o- W9 M
2、搜索框内有 请输入关键字
! A G& @1 l& n& p) G9 j
% j) {1 `3 j/ M2 ^ P4 K
<form class="searchform" method="post" action="search.php" target="_blank">
( f. _" D8 C$ v: E% O* e
<input type="hidden" name="formhash" value="fb25ecf8" />
: a$ y- n) C, d3 b% m
<p class="searchkey">
$ {, q9 G, O S: v) U! |* F$ X
<input type="text" id="srchtxt" name="srchtxt" prompt="search_kw" size="45" maxlength="40" value="请输入搜索关键词"
/ x y- D7 l, @6 b$ Y. n
<script type="text/javascript"></script>
# A. F$ G0 s6 ~" X. c. N2 U
<select name='srchtype'>
5 F( [# s8 ~& Y. s2 b
<option value="title">标题</option>
" o9 C2 ^9 e( Y* I
<option value="fulltext">全文</option></select>
5 B- S7 D( p' I# }4 C! u( ^; I. Q* F
<button type="submit" name="searchsubmit" id="searchsubmit" value="true" prompt="search_submit">搜索</button>
- R7 q- A! ~! W! A6 x( ^, j/ Q
</p>
欢迎光临 【舞蹈伴奏网】专业高清舞蹈资源分享站! (http://happy123.imotor.com/)
Powered by Discuz! 7.2