QQ登录

只需一步,快速开始

登录 | 注册 | 找回密码

三维网

 找回密码
 注册

QQ登录

只需一步,快速开始

展开

通知     

全站
7天前
查看: 1350|回复: 0
收起左侧

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

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

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

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

x
关于模板的自动标列表程序
6 ?) D. L7 K  j& y" M我兴趣的和我交流: QQ879555882
& q: i* Y7 I+ [9 f6 ?/ K! T表单的基本语法<form action="url" method=*>4 D% p8 r* N( w8 C6 O
... % ~2 b3 A- j6 a% s! ]
... 4 {2 A0 ?% k( L2 Z# r! R
<input type=submit> <input type=reset>
( w, O. X0 S/ w6 A1 x, m3 p1 m</form>
*=GET, POST
6 K7 J  x  }5 \" f) B5 Y4 _8 w& z# g' h
表单中提供给用户的输入形式<input type=* name=**>*=text, password, checkbox, radio, image, hidden, submit, reset
1 y! g8 U2 ^4 c" ]2 U**=Symbolic Name for CGI script
; E% a3 M$ e3 {
2 A9 ~$ @+ ]2 {/ R% mhttp://www.gzsums.edu.cn/webclass/html/br20t.gif 文字输入和密码输入*=text, password ! m4 q7 u: U' L( R8 f2 D
<input type=*>+ Z, o7 S% J8 X. }& E; x
<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>您的姓名: 3 q8 Y9 r1 e* C3 q! q8 a
您的主页的网址: , i0 M4 G' U9 f6 u; w0 x, i' v
密码:
+ `: u1 J' b5 T* {1 ^
; F" I* b3 J5 ^. I" P0 L  f( b  A" @% M3 ?: t
<input type=* size=**>
, X7 F( A; w1 c4 t7 t/ u, S* @& t<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>, M- \+ m) V. O, f( H' C+ R, m* c' Q

$ e: o# I; g- d) J$ Z. E5 }) `
! q) g8 E9 X4 K! G$ c4 S
  p% D( x9 H7 ^5 h: X: N5 t* Xhttp://www.gzsums.edu.cn/webclass/html/br20t.gif 复选框(Checkbox) 和 单选框(RadioButton)
  y; g6 f1 u% ~# \) v<input type=checkbox>
9 f% U2 Q% s1 C9 x6 O( l. E/ w6 q<input type=checkbox checked>! W6 B, W2 z: Q9 A0 U& C1 d, W
<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
7 W5 Z' T/ \; x% P* g( u% Z& sApple  M' \6 V9 N  D. @* _
Orange; X# ?/ w7 F. V/ j) x$ K
! {. G" _  W- R- n

+ r% I7 w0 |- d2 q; Y# f( R' k; f/ j1 E<input type=radio value=**>& X% a$ B7 M& ^0 @" I' D+ v6 o8 _
<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( V. C* M+ D' oApple* ]7 \$ w' V+ M" D8 B
Orange
5 m3 a7 m: H9 E* f. t- N) ^( W
) G- D' @9 ^3 a4 t3 x" T2 n" }! K) L  p2 m) r5 B6 I
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>- x. S& r( N2 N1 h, W
x2 x4 x66 e/ V+ W5 N: B4 t: U: s/ e

4 A5 z) A0 Q- Z6 Y4 b9 Q% }7 U! q# k  E' `$ H' B. x" {
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. # g" p3 n8 K3 L% d' L

( R; T1 ~7 u0 O: Q* }- `. y
0 `: z! f/ K1 v' m5 j0 Mhttp://www.gzsums.edu.cn/webclass/html/br20t.gif 列表框(Selectable Menu) 8 @9 ~/ b8 ]+ n5 l2 D3 T$ I  J
基本语法<select name=*>
; o* ~% V! T: V5 v( X% b3 Z<option> ...
0 w# e0 ]$ ~9 _+ w/ W( K1 q3 U! j</select>
+ y9 O) f/ c1 K' l8 ^<option selected>! }9 r2 b9 y" Z3 C. U$ V
<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>
1 x' l8 t2 x4 Z. f. b" D
. I* I: B, F3 N; i; b& Z' Z0 W5 N2 @! A9 m
<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>
: _3 @* x  {/ U) C6 J9 B. Z7 ^1 x! q$ i  S+ }5 Y9 h

$ a- V" M+ T& K: N% |<select size=** multiple>注意,是用 Ctrl 键配合鼠标实现多选。
- ~. K# q, V( u- F0 k3 q(和 MS-WINDOWS 的 File Manager 一样)

4 a+ G, [, M' h  X$ M6 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>
' D# \* z7 w' X8 Y1 A2 K# T/ k/ \! R( v( M# k6 H! u

5 m; p0 `& O2 C- B& N' zhttp://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>
' i% @5 P; K. {; {6 x, y3 Y! G/ U8 p5 R! z1 J! t) {
7 J$ L3 ?+ J# b
对于很长的行是否进行换行的设置(Word Wrapping) http://www.gzsums.edu.cn/webclass/html/netscape.gif<textarea wrap=off> ... </textarea>不换行,是缺省设置。 ' p& n! ~  `! R& l
<textarea wrap=soft> ... </textarea>“软换行”,好象 MS-WORD 里的“软回车”。
- y$ `% H4 O% `<form action=/cgi-bin/post-query method=POST>
- z6 [0 r4 o9 @" e) m6 E<textarea wrap=soft name=comment rows=5 cols=25> </textarea><P>! l& l$ C3 `6 f7 G+ G. x; p8 U
<input type=submit><input type=reset>0 i; [& _- _* A
</form>; G4 j- N& S( @( k: U

8 g0 g- G7 e, ~( c' X, g( e
0 q) ^5 I% j# g. c6 A& i
5 x, l* B4 l9 ?5 ^3 U5 Q8 W<textarea wrap=hard> ... </textarea>“硬换行”,好象 MS-WORD 里的“硬回车”。 # d/ y$ I7 E( X  b+ F% y; @- [
<form action=/cgi-bin/post-query method=POST>, s- M' M3 p  ?) `
<textarea wrap=hard name=comment rows=5 cols=25> </textarea><P>
( t, \# u9 `5 X) W1 |  a<input type=submit><input type=reset>
& K7 G2 f5 K- p4 I2 P$ h6 a</form>
发表回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

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