源码学习:一个简单的日历控件(11)
menupad[2]=new Array();
8 B ~+ u' e2 ] menupad[2][0]=new Array("替换");: Y$ [3 s- _6 L
menupad[2][1]=new Array("--");
( h6 g4 T* p/ [3 |# k& P+ h1 J/ u menupad[2][2]=new Array("无间道");8 t b* _, H5 M9 f( Q0 B7 {7 @
menupad[2][3]=new Array("无孔不入");
5 a7 [7 p7 A/ E8 B; R
7 \* |( Q8 D% \ b+ {
4 I' J8 }- H' |( S8 G: p7 L8 _$ U
k* M( q% C+ A" }, K var menu=new atMenu(menubar,menupad);
. x' K' u- ?2 L6 q: [1 n7 d) K }2 x/ O! Z4 j/ w0 ^ J- w2 s: ]. o
/script, i/ }9 q8 J9 {$ D) m) e, u
/HEAD . X2 u2 M/ \4 i) C# t' d3 ?8 A
5 V. F O t1 E/ b calendar.html
6 V- E1 x0 z/ A4 V' s( }9 [
6 [9 s- d' c2 e, {/ V/ j" _ BODY
' @2 \+ z. l- b1 b$ e table width="750" border="0" cellpadding="1" cellspacing="3"
J8 K4 ?( U% T/ }/ W# b tr
/ D2 _7 t1 W* K+ t/ \ td width="225"nbsp;/td
- S% W; o: h& Y3 r) ?! j* a8 M td width="482"nbsp;/td8 y4 I o. ^/ Z$ w4 ~2 \
td width="21"nbsp;/td$ Z7 N1 B2 |4 l2 n8 {- m
/tr
" Z0 J8 k/ P# Z tr/ h2 L6 k t' M( s$ [
td height="123"nbsp;/td7 @! @' |1 b/ J3 [
tdnbsp;/td
, y* }: R9 q+ J) p tdnbsp;/td5 \* N& `9 i% I# ]3 s
/tr
1 k2 C ~- t& }( r. S tr
. d: d! O3 e7 d- K' b& c tdnbsp;/td
: k0 ^! w% k c' e0 g( E td form name="form1" method="post" action=""
+ o9 T4 ~% U* Q/ w( |, d label输入日期: /label
6 A9 d/ m7 P& v6 n( P input name="dateInput" type="text" id="dateInput" size="12" maxlength="12" readonly="1" /
b- [0 l( W4 O3 t# k$ L. l) d img src="img.gif" width="18" height="18" title="显示日历" /
* c$ u6 S7 O; @( L( S /form9 Q) a& z: h6 _. {, o1 b
label/label/td
: O+ g2 h! }. X* T8 L tdnbsp;/td
6 o5 y! Z2 ~ A8 T9 L5 N; N /tr
# X9 H5 N' S7 c; P /table
) h" n. f W9 z _. q table width="750" border="0"$ J/ H0 Q- `) H
tr2 U) a* e0 Z* u% ^3 x' I) s, Q2 N
td width="245"nbsp;/td! l* Q& J5 E' `+ Y, d9 ]+ a# d
td width="83"nbsp;/td
; t1 t( w! L v: a+ P2 H6 m/ A td width="408"nbsp;/td
6 x5 W( M) h. Q9 C: W /tr# n0 w6 a, O7 {* V
tr
) |; E8 V3 m7 D1 J6 R td height="18"nbsp;/td$ F; o9 p P$ E
tdnbsp;/td0 f; `* @7 w& Z& [7 M
tdselect name="select"
7 w( P2 m1 A7 a; y+ X option selected我被calendar遮挡了/option
% E& }' b* `% A" Q; Q /select/td% j$ t# A2 [8 D- Q4 O
/tr
" V" S; G( R' ]. ] tr" h: G$ n( J" V) q5 T" Z, q( j
tdnbsp;/td
* `: o; @9 H2 X! y4 u4 ] tdnbsp;/td# L; Y2 _8 ^8 V# ~4 L
tdnbsp;/td$ ~& b3 [, W2 G" C
/tr% V! J" ~( \$ F, ^; }) T
/table
- w% m+ y9 S0 V x 日期:& l, M# @; F+ g! S
input name="dateInput" type="text" id="dateInput" size="12" maxlength="12" readonly="1" value="2003-12-22" /
$ Q6 S# i0 v6 H /BODY- d J% X2 x4 {3 {7 V
/HTML
点击图标进入精品网摘收藏 欢迎大家加入网络收藏夹