|
|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
关于模板的自动标列表程序
4 O( H9 {/ E5 q1 E我兴趣的和我交流: QQ879555882
0 a/ C4 E+ e, B( D) L表单的基本语法<form action="url" method=*>9 J; B6 i3 S: j% O
...
% f. G# \! }" y/ V8 c5 f& e5 k& g+ `... + `/ W8 V4 M e0 H2 \7 G7 ]
<input type=submit> <input type=reset>
5 f R5 ]7 J1 G</form> *=GET, POST ( T1 v d. M. `5 p8 s
6 {# Q7 I2 q* j# B表单中提供给用户的输入形式<input type=* name=**>*=text, password, checkbox, radio, image, hidden, submit, reset4 H$ _& V* o; C2 J4 t$ W
**=Symbolic Name for CGI script
$ z& O6 q: W) r
& ~" L0 ?! C6 Z* ahttp://www.gzsums.edu.cn/webclass/html/br20t.gif 文字输入和密码输入*=text, password * g% k% |- u' Q
<input type=*>! k/ [4 ?* Y4 ]) f5 \
<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>您的姓名: 8 b7 j4 W9 ]1 r( N3 I
您的主页的网址:
) n0 w. Q/ z+ S( C7 E6 e5 P% u: E密码:
: d9 ~3 m% z9 b1 l1 d
/ y9 H8 G" ~" s2 H6 o. R
! B, _% T B" i- O% i8 ^<input type=* size=**>
O- e( p; v3 y' {; H<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>( `4 P* k& F2 ^
5 T! h8 I6 a+ x: f
8 C( e/ ~7 u4 q' L& ?* C4 V% M2 A p
; b- X7 Z( p% z% r. _& I+ l
http://www.gzsums.edu.cn/webclass/html/br20t.gif 复选框(Checkbox) 和 单选框(RadioButton)
! ]' v. V0 a# [3 a/ k) O<input type=checkbox>* M4 Z" v4 [6 G9 ]$ p
<input type=checkbox checked>
; i, \6 l+ Q/ J; `- e<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>Banana8 e {! j1 X: X0 g/ n7 H- F( D
Apple2 p( H7 }6 B7 Y: t7 D9 S
Orange
4 |7 g% H3 o8 k5 C; I! d s2 P
B1 ~) Q8 J7 q7 m* H1 j% K2 x7 w8 ]/ h
<input type=radio value=**>
. M9 J6 O6 a$ v2 r<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
5 Y* S7 E4 x; U. q! {9 |+ \; [Apple
0 Z8 \; |! t2 x; lOrange
$ }; O, [& D) W8 s- n7 |+ X$ a
O' A' }& }2 W0 Z0 q& y
* L5 }! H$ `. L) N( c# Shttp://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>
3 N5 u4 F* B1 Y5 q5 Dx2 x4 x6
/ [1 M: r" J6 v7 A# ]0 v t0 A ?: L8 c- O# l
. [3 w" H' t5 \2 ]
http://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.
[, q) `( _4 o. h) [6 o6 _, x4 N
2 ~# L. x: Z T( U+ V5 h4 r' A6 l1 e0 b
http://www.gzsums.edu.cn/webclass/html/br20t.gif 列表框(Selectable Menu) $ m# ~9 C, w/ ]9 A& i
基本语法<select name=*> y6 Y- z2 X- d' c: V: O3 E( n
<option> ...( q- s; E2 U8 \9 L" Y
</select>
: s" C5 `' _- N7 O. r! m$ i<option selected>5 y% J% c- d- C9 ]0 I
<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>
! z! G$ [* P% v: k5 }" p6 Z2 R
4 u$ j, b. W9 R0 K/ z+ A
% R$ {" V3 d0 q2 z R; P% A<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>
" ?0 n9 E8 ^3 ^0 z4 S* F7 ~9 ]7 g7 G' f
6 \2 t# x9 o3 v# s" ?<select size=** multiple>注意,是用 Ctrl 键配合鼠标实现多选。8 c$ y, T% f. c# Y* c/ N' x
(和 MS-WINDOWS 的 File Manager 一样)
) O0 q8 Z4 ~& L# f$ Z1 \# h<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>& ^' ]/ W9 g% S, x0 ^
7 @( F4 I6 R2 f* l4 y
7 E+ [( h, F4 X! N f" r! z7 q
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>
: p: l+ I1 I: }, X) u# q1 m* |$ H! c3 r- W4 `7 p4 O! A k
6 r' U3 k) {$ }# a5 [+ I0 M! x' @
对于很长的行是否进行换行的设置(Word Wrapping) http://www.gzsums.edu.cn/webclass/html/netscape.gif<textarea wrap=off> ... </textarea>不换行,是缺省设置。 3 r# ~: i z/ t! P: j8 e
<textarea wrap=soft> ... </textarea>“软换行”,好象 MS-WORD 里的“软回车”。
4 J9 _% _0 L& y<form action=/cgi-bin/post-query method=POST>. j% {9 _& i% y1 m2 e
<textarea wrap=soft name=comment rows=5 cols=25> </textarea><P>
8 G$ [, U8 Z( y/ s q<input type=submit><input type=reset>
( D& Z* ~- t; h) P; F</form>
$ I3 H: t9 b5 C* Q8 O6 H( h1 c
. B- j, S l5 K7 y- ~4 r% b2 P7 E" o4 E; t# l) [' a- a" t
; _8 R$ t, g, C6 B- ^& i
<textarea wrap=hard> ... </textarea>“硬换行”,好象 MS-WORD 里的“硬回车”。
; k+ S" d4 n3 G<form action=/cgi-bin/post-query method=POST>
% J1 H2 H3 B, m; A q% @% [<textarea wrap=hard name=comment rows=5 cols=25> </textarea><P>
7 x# L7 p* G9 C: b<input type=submit><input type=reset>
( @- |$ s( a- P8 a( {: \</form> |
|