动态网页设计与网站管理实验指导书(13)
时间:2025-07-08
时间:2025-07-08
str1="先生" else
str1="女士" end if
if time()>=#6:00:00# and time()<=#12:00:00# then '根据当前时间决
定问候语
str2="早上好!"
elseif time()>=#12:00:00# and time()<=#19:00:00# then str2="下午好!" else
str2="晚上好!" end if
document.write "<h2 align=center>您好," & _
xm & str1 & "," & str2 & "</h2>" '该语句输出欢迎词 </script> <p align=center>
<% dim y,m,d,t,w,str
y=year(date()) '取得当前年 m=month(date()) '取得当前月 d=day(date()) '取得当前日 t=time() '取得当前时间
select case weekday(date) '判断weekday()函数的值形成中文“星期几”信息 case 1
w="星期日" case 2
w="星期一" case 3
w="星期二" case 4
w="星期三" case 5
w="星期四" case 6
w="星期五" case 7
上一篇:混凝土配制强度
下一篇:一次函数待定系数法教案