aspnet实用教程第五章c内容摘要:

0年 04月 04日 ().ToString():11:56:18 ().ToString():20200404 ().ToString():11:56 ().ToString():20200404 03:56:18 ():20200404 00:00:00 ():2020 ():Sunday ():94 ():11 ():56 ():4 ():18 练习: 1. 现在是: 2020年 04月 04日 12点 15分 12秒 欢迎光临本站。 2. 动态显示时钟:现在是: 2020年 04月 04日 12:20:54 欢迎光临本站。 时间动态变化。 动态显示时钟: SCRIPT LANGUAGE=JavaScript ! (span id=39。 time39。 /span) setInterval(=new Date().toLocaleString(),1000) // /SCRIPT 显示用户停留时间 (1) getTime() 可返回距 1970年 1月 1日之间的毫秒数。 script language=JavaScript var now = new Date()。 (())。 /script 例 显示用户停留时间页面代码: form name=myform 您在线时间为: input type=text name=clock /form 显示用户停留时间 (2) script language=JavaScript var min = 0, sec = 1。 start = new Date()。 function go(){ now = new Date()。 time = ((() ()) / 1000)。 min = ( time / 60)。 sec = time % 60。 if ( sec 10) = + min + 分 0 + sec + 秒。 else document. = + min + 分 + sec + 秒。 } setInterval( go(), 1000)。 /script 例 用户注册页面实现  table style=width:100%。  tr  td colspan=2 class=style1b请认真填写以下信息: /b/td  /tr  trtd class=style2用户名: /td  tdasp:TextBox ID=TextBox1 runat=server style=marginleft: 0px/asp:TextBox/td  /tr  trtd class=style2密码: /td  tdasp:TextBox ID=TextBox2 runat=server TextMode=Password/asp:TextBox/td  /tr  trtd class=style2确认密码: /td  tdasp:TextBox ID=TextBox3 runat=server TextMode=Password/asp:TextBox/td  /tr  trtd class=style2性别: /td  tdasp:RadioButton ID=RadioButton1 runat=server Text=男 GroupName=sex  Checked=True/  asp:RadioButton ID=RadioButton2 runat=server Text=女 GroupName=sex//td  /tr  trtd class=style2出生日期: /td  td  % asp:TextBox ID=TextBox5 runat=server /asp:TextBox格式 1980 01 01  img alt= src=../js/My97DatePicker/ski n/ onclick=WdatePicker({el:39。 TextBox539。 }) /  %  input id=Text1 type=text runat=server onclick=WdatePicker()//td  /tr  trtd class=style2爱好: /tdtd  asp:CheckBoxList ID=CheckBoxList1 runat=server RepeatDirection=Horizontal  asp:ListItem读书 /asp:ListItem  asp:ListItem游戏 /asp:ListItem  asp:ListItem电影 /asp:ListItem  asp:ListItem上网 /asp:ListItem  asp:ListItem学习 /asp:ListItem  /asp:CheckBoxList  /td  /tr  trtd class=style2职业: /tdtd  asp:DropDownList ID=DropDownList1 runat=server  asp:ListItem Selected=True请选择 /asp:ListItem  asp:ListItem教师 /asp:ListItem  asp:ListItem学生 /asp:ListItem  asp:ListItem工人 /asp:ListItem  asp:ListItem经理 /asp:ListItem  /asp:DropDownList  /td  /tr  trtd class=style2其他: /td  tdasp:TextBox ID=TextBox4 runat=s。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。