求大神指导 下面这段代码哪里错了 怎么修改
vbscript吧
全部回复
仅看楼主
level 2
<html>
<head>
<title>t52.asp</title>
</head>
<body>
<script language=vbscript>
Dim i
i=Hour(Time())
document.write i
If i<12 Then
Document.write ("张三,早上好!")
Else If i<14 Then
Document.write ("张三,中午好!")
Else If i<18 Then
Document.write ("张三,下午好!")
Else
Document.write ("张三,晚上好!")
End if
</script>
</body>
</html>
2014年07月09日 02点07分 1
level 2
目测不用顶上去
2014年07月09日 02点07分 2
level 9
Time 没有圆括弧
2014年08月11日 14点08分 4
level 9
逻辑也不对 i<12 12<i<14 14<i<18
2014年08月11日 14点08分 5
1