|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
关于模板的自动标列表程序
/ _6 p! t9 \( W* r4 |7 q- h0 O我兴趣的和我交流: QQ8795558822 \1 S+ `6 U* \/ T& \
表单的基本语法<form action="url" method=*>2 D1 p" _; l) r! n
...
5 \- D, Q& L% v% f. o0 k' a... ' c: K* k$ Y4 d6 F
<input type=submit> <input type=reset>! [6 H3 H9 P Z+ {( l' y
</form> *=GET, POST # r9 K9 h, O; M% D* O
$ _9 @6 f9 G. e( R; _4 x& O+ H
表单中提供给用户的输入形式<input type=* name=**>*=text, password, checkbox, radio, image, hidden, submit, reset! A! R6 R( t4 U9 |+ z% _. r
**=Symbolic Name for CGI script & M8 _/ G, M+ I$ ~ Z4 R9 H
# O6 {; s0 H1 Z$ f
http://www.gzsums.edu.cn/webclass/html/br20t.gif 文字输入和密码输入*=text, password ) Z7 R, i/ f! E
<input type=*>
3 i" x4 ]# W1 Q0 Z5 d% t) ^, A<input type=* value=**><form action=/cgi-bin/post-query method=POST>您的姓名: <input type=text name=姓名><br>您的主页的网址: <input type=text name=网址 value=http://><br>密码: <input type=password name=密码><br><input type=submit value="发送"><input type=reset value="重设"></form>您的姓名: % t3 G4 q5 K* Z6 Z. M8 `. e( l8 F
您的主页的网址: + F7 B% `) u! E3 d7 p
密码:
( H8 y! x5 c: z; ]5 o( R# [" |- w; T g4 p
3 N; Q5 Q7 Z$ [2 k. ]3 ]. C
<input type=* size=**>
: ~3 q+ I7 |5 ]* T/ n<input type=* maxlength=**><form action=/cgi-bin/post-query method=POST><input type=text name=a01 size=40><br><input type=text name=a02 maxlength=5><br><input type=submit><input type=reset></form>
1 i( n5 ]' z9 d" u& N# Z9 q9 i4 b: R% o. r4 J( Y# M/ Q3 O3 b
' _& A. z" H( R
7 Q# Y7 O# x5 i6 b1 M
http://www.gzsums.edu.cn/webclass/html/br20t.gif 复选框(Checkbox) 和 单选框(RadioButton) 5 e0 [' M1 X: p- ^
<input type=checkbox>. t1 n. O6 s) e5 J6 ?# u
<input type=checkbox checked>* Q6 l6 W+ m6 m/ C
<input type=checkbox value=**><form action=/cgi-bin/post-query method=POST><input type=checkbox name=水果1> Banana<p><input type=checkbox name=水果2 checked> Apple<p><input type=checkbox name=水果3 value=橘子> Orange<p><input type=submit><input type=reset></form>Banana
$ D- [% c/ b: f& b L% U: cApple% Z( `' @+ U# \9 R* f' h4 r# a L
Orange
3 F3 ]- U% {9 q7 O' S8 h7 g7 ^1 b, U6 `4 ^" I" p
X! u p% M$ V) u
<input type=radio value=**>
2 o6 R5 ^+ J2 X" z8 R# w9 ?; n3 G. n<input type=radio value=** checked><form action=/cgi-bin/post-query method=POST><input type=radio name=水果> Banana<p><input type=radio name=水果 checked> Apple<p><input type=radio name=水果 value=橘子> Orange<p><input type=submit><input type=reset></form>Banana% V/ S0 U9 `- [* Z* U( B' r
Apple
6 A* ]. A3 D' Z+ s0 XOrange2 E! d- X' t% Z* ^
# E5 w! w1 G: g9 m
' m7 `4 I4 w: s. [9 z2 q' }
http://www.gzsums.edu.cn/webclass/html/br20t.gif 图象坐标 在下面选则一个系数后,在图象上点一下,就知道什么是图象坐标了! <input type=image src=url><form action=/cgi-bin/post-query method=POST><input type=image name=face src=f.gif><p><input type=radio name=zoom value=2 checked>x2<input type=radio name=zoom value=4>x4<input type=radio name=zoom value=6>x6<p><input type=reset></form>
# d5 s0 |- j Mx2 x4 x63 e* S6 R5 b# m# K; m
# ~2 i) o {! R; \
: A1 e8 X# q" @- |) P% Mhttp://www.gzsums.edu.cn/webclass/html/br20t.gif 隐藏表单的元素 <input type=hidden value=*><form action=/cgi-bin/post-query method=POST><input type=hidden name=add value=hoge@hoge.jp>Here is a hidden element. <p><input type=submit><input type=reset></form>Here is a hidden element. 5 i) S6 l$ N; o( h+ D/ _9 S
' E2 f1 J( k/ n6 y0 J, r6 G) r, w4 k, W! o6 j& Y( v) J: w
http://www.gzsums.edu.cn/webclass/html/br20t.gif 列表框(Selectable Menu) 0 z: U& C# w- C4 P1 X+ K& @( ^, W
基本语法<select name=*>
: @- u' W. O0 y$ b8 d8 _6 V( Z6 _<option> ...
! _8 g4 c, d" @, |& v( `& c</select> 8 @* H: B! P# J& p. z8 H( B. X
<option selected>7 t, `2 q% |: I4 a* ~
<option value=**><form action=/cgi-bin/post-query method=POST><select name=fruits> <option>Banana <option selected>Apple <option value=My_Favorite>Orange</select><p><input type=submit><input type=reset></form>
0 M3 Q W9 K+ n2 X$ k- p
6 X1 S8 R3 t _! S4 Y* V7 R* H! N `" @$ h: _) A7 s
<select size=**><form action=/cgi-bin/post-query method=POST><select name=fruits size=3> <option>Banana <option selected>Apple <option value=My_Favorite>Orange <option>Peach</select><p><input type=submit><input type=reset></form>8 g$ t7 t' U. d( W5 o; M
1 j+ p0 M& o$ w/ q3 X/ m+ W
: n" x7 `2 A$ A1 R& v8 q<select size=** multiple>注意,是用 Ctrl 键配合鼠标实现多选。, b; x2 {8 Q& S6 F. e. R4 u9 B
(和 MS-WINDOWS 的 File Manager 一样) : | @- Z. v& n4 ]% q
<form action=/cgi-bin/post-query method=POST><select name=fruits size=3 multiple> <option selected>Banana <option selected>Apple <option value=My_Favorite>Orange <option selected>Peach</select><p><input type=submit><input type=reset></form>9 n: \# Z( d; k, q+ J# y h
( i1 k. F+ A1 I4 L6 H3 n1 X
0 l9 a1 N% r# g: g2 l, H% ?8 x: a7 ]
http://www.gzsums.edu.cn/webclass/html/br20t.gif 文本区域<textarea name=* rows=** cols=**> ... <textarea><form action=/cgi-bin/post-query method=POST><textarea name=comment rows=5 cols=60></textarea><P><input type=submit><input type=reset></form>7 f. F ~; a X' ?4 ?; }
4 E3 j; h* z) b0 f1 T3 F6 F3 d6 }( y8 o3 Y
对于很长的行是否进行换行的设置(Word Wrapping) http://www.gzsums.edu.cn/webclass/html/netscape.gif<textarea wrap=off> ... </textarea>不换行,是缺省设置。
5 ]' x# s8 i: z" m<textarea wrap=soft> ... </textarea>“软换行”,好象 MS-WORD 里的“软回车”。
l& @8 C* |: o$ V6 `2 z0 K<form action=/cgi-bin/post-query method=POST>
, \) O4 H; `1 \# P<textarea wrap=soft name=comment rows=5 cols=25> </textarea><P>
7 }- R3 z, V3 }6 @( a1 ~ n<input type=submit><input type=reset>
8 {% ~- s y# r4 I s6 P( s. |" m</form>
7 {* z {$ W! @: @5 H" m2 F
1 M; `' h( p8 L0 w( D2 V; d' c: a! }2 r% @1 O
Z; Y8 U7 |& M<textarea wrap=hard> ... </textarea>“硬换行”,好象 MS-WORD 里的“硬回车”。
% P0 r2 i! r4 t7 |9 c2 Q7 l<form action=/cgi-bin/post-query method=POST>+ v4 A& s* r: i) s, N
<textarea wrap=hard name=comment rows=5 cols=25> </textarea><P>
, D4 ]8 f" k* ]2 I0 F<input type=submit><input type=reset>
- `* N/ T9 g! Q7 L, ^</form> |
|