QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

全站
9天前
查看: 1351|回复: 0
收起左侧

[原创] 关于模板的自动标列表程序

[复制链接]
发表于 2008-1-18 12:33:28 | 显示全部楼层 |阅读模式 来自: 中国江苏苏州

马上注册,结识高手,享用更多资源,轻松玩转三维网社区。

您需要 登录 才可以下载或查看,没有帐号?注册

x
关于模板的自动标列表程序7 M" d. P7 ~" D! Y+ o+ G7 b# t, t
我兴趣的和我交流: QQ8795558823 U2 v' G5 F, Q; l0 V, F
表单的基本语法<form action="url" method=*>
8 r4 B6 I4 `. l; n... & Z+ i3 J/ A; z- l
... ( @0 E& k' O- Q- H! _3 x, A! u
<input type=submit> <input type=reset>
' m8 z& _1 ^# P0 Z2 Q+ M% p1 G</form>
*=GET, POST 2 R0 u0 u8 ^3 e8 G* J& {/ I% `

3 `6 I  P1 l/ a( `# l2 D: d1 p' {0 B表单中提供给用户的输入形式<input type=* name=**>*=text, password, checkbox, radio, image, hidden, submit, reset* V$ A, _+ z+ `& ~1 q
**=Symbolic Name for CGI script 8 O/ \" Q  K+ y; n
7 B$ |% [" W& g1 D0 l
http://www.gzsums.edu.cn/webclass/html/br20t.gif 文字输入和密码输入*=text, password $ ~: m7 z' B6 V/ x( q; _4 g
<input type=*>
! |. o- M4 w- p# r/ ?<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>您的姓名:
( p+ {( |. `% `) i* ]您的主页的网址: ( y! U/ K8 u  {5 H5 S/ S0 p
密码: 3 L1 v" T/ T. t# t8 J, J
' {5 ]" U' C3 ~0 b

3 q+ O* K2 v' a3 f<input type=* size=**>
( x6 ]; U; M- ?0 ~' O, D<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 E& }9 j5 b. U9 E5 s5 m4 e
0 @" T( p' B0 K

4 l% l* U5 D8 H" f# @/ }2 b. i% N- e/ J
http://www.gzsums.edu.cn/webclass/html/br20t.gif 复选框(Checkbox) 和 单选框(RadioButton) 4 o+ j  B! d' p9 C& Y( M
<input type=checkbox>
! }& j$ o( c* `9 `; F3 T<input type=checkbox checked>
' O+ q% ~7 e7 g6 I7 V$ T<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' T& |+ v- |) W* y) ~1 H/ G/ G
Apple. l( A* A; J6 r. o: [
Orange
  D! D9 X# a6 p  k6 r4 f! A$ W
! C/ T6 F# k  T$ F" P3 u* w$ n% N9 C! {2 N7 Z
<input type=radio value=**>- M0 j  T% O4 E: e
<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>Banana4 e- J' @  A% m5 _0 z' Z1 J
Apple/ x! n- u9 A! Z" d" r/ g  i4 _
Orange  ^  B: x$ y( y1 o. ~- F/ b

! ^  |) ~0 k# f9 ^1 a+ q+ \0 m5 \6 b* O  F" p, b! y
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>9 T7 ~6 D5 [1 g- Q- s; t1 y
x2 x4 x6/ W! e- J+ o6 ^3 H. }

. g8 X: G& J7 I# r4 [' s( c; G1 b, w$ Y7 B5 t" r  S
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. 8 }5 Y8 l" i* O4 s$ m' z+ w
  F% J3 x3 \+ X. S. i( n5 J7 p

  A( M3 {; n3 q+ Vhttp://www.gzsums.edu.cn/webclass/html/br20t.gif 列表框(Selectable Menu)
1 _, b; l' w& [2 L& w$ i+ u/ W基本语法<select name=*>
3 U# a" x, X! K: S<option> ...
4 K& D1 C) m/ x( X7 [3 y</select>
# \! U* ?- H7 ]$ Z" v+ u$ I<option selected>$ ?9 o9 q3 ^/ L: p5 P
<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>2 D& w7 u, e+ r2 a% ^

% b: h4 Z2 d* Z2 b3 [( B8 N
5 C0 E4 H9 O9 h2 v1 Y<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>5 G. Z1 X3 b( H, S

  n7 a$ h  q. N3 F" P% c0 i  a" G0 C
: l' q: }+ j3 h, Q; e" ^<select size=** multiple>注意,是用 Ctrl 键配合鼠标实现多选。; }/ N9 R* U6 P/ ~
(和 MS-WINDOWS 的 File Manager 一样)

" S7 Q# d! ^: `9 ?/ W: W<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>: P0 X) h4 S% s( C* |3 n3 x2 u

& s5 _/ Q% R0 t' D5 X
) }- E# ]$ y& }5 ^  xhttp://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># N  y; f8 n; n) P: S) A1 l
# u  r( b& S, c, K
3 {3 _' K3 D( c  D( f
对于很长的行是否进行换行的设置(Word Wrapping) http://www.gzsums.edu.cn/webclass/html/netscape.gif<textarea wrap=off> ... </textarea>不换行,是缺省设置。 4 Y) e1 {$ B0 y7 c5 i/ n
<textarea wrap=soft> ... </textarea>“软换行”,好象 MS-WORD 里的“软回车”。
1 t% q5 A, r: Z  o/ R8 O# k<form action=/cgi-bin/post-query method=POST>
* Z" x( a+ D) v  O: T* J<textarea wrap=soft name=comment rows=5 cols=25> </textarea><P>7 P# c9 W6 h5 n# z- r+ d2 K2 a
<input type=submit><input type=reset>5 [8 B- y1 G( z2 a7 I8 h
</form>
) _* c" L  y3 [, {
5 w. O2 ]: E, }: T& c; ?; Z# j9 g8 u7 d: E

( l7 ^) X, d+ T. N7 t<textarea wrap=hard> ... </textarea>“硬换行”,好象 MS-WORD 里的“硬回车”。
( r* ]# C/ J, ]' Y' l) J, p<form action=/cgi-bin/post-query method=POST>
! H4 u* k; V9 A# w0 M$ Z<textarea wrap=hard name=comment rows=5 cols=25> </textarea><P>
! e& J% K2 V# ?<input type=submit><input type=reset>$ g/ Q2 q1 Q8 w7 ]% j7 i
</form>
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Licensed Copyright © 2016-2020 http://www.3dportal.cn/ All Rights Reserved 京 ICP备13008828号

小黑屋|手机版|Archiver|三维网 ( 京ICP备2023026364号-1 )

快速回复 返回顶部 返回列表