53、点击按钮展开时间选择表

53、点击按钮展开时间选择表

脚本说明:

把如下代码加入<body>区域中

              <script language='javascript' src="071701/popcalendar.js"></script>

 

              <SCRIPT LANGUAGE="JavaScript" SRC="071701/lw_layers.js"></SCRIPT>

 

             <SCRIPT LANGUAGE="JavaScript" SRC="071701/lw_menu.js"></SCRIPT>

                            <B><U>示例一</U></B><BR><BR>

<blockquote>

 

                                   <form name='mainform' method='post'>

 

                                          <input type=text name='datevalue' size=10 maxlength=10 value='02/02/2002'>

 

                                          <script language='javascript'>

 

                                          <!--

 

                                                 if (!document.layers) {

 

                                                        document.write("<input type=button onclick='popUpCalendar(this, mainform.datevalue, \"dd/mm/yyyy\")' value='请选择' style='font-size:11px'>")

 

                                                 }

 

                                          //-->

 

                                          </script>                            

 

                                   </form>

 

                                   </blockquote><BR><BR>

 

                            <B><U>示例二</U></B><BR><BR>

 

                                   <input style='font-size:11px' type=button value="2 December 2001" onclick='popUpCalendar(this, this, "d mmm yyyy")'>

 

                                   </blockquote><BR>

 

Write a comment

Comments: 0