<%
if Hour(Time())<9 Then
Response.Write "早上好"
end if
if Hour(Time())>9 And Hour(Time())<12 Then
Response.Write "上午好"
end if
if Hour(Time())>12 And Hour(Time())<19 Then
Response.Write "下午好"
end if
if Hour(Time())>19 Then
Response.Write "晚上好"
end if
%>
请问我这样写怎么有错误
<% if hour(Time())>5 and hour(Time())<9 Then greeting ="早上好"
end if
hour(Time())>9 and hour(Time())<12 then greeting=""
end if
hour(Time())>12 and hour(Time())<19 then greeting=""
end if
hour(Time())>19 or hour(Time())<5 then greeting="" %>
<%=greeting%>
请问我这样写怎么有错误
<% if hour(Time())>5 and hour(Time())<9 Then greeting ="早上好"
end if
if hour(Time())>9 and hour(Time())<12 then greeting="上午好"
end if
if hour(Time())>12 and hour(Time())<19 then greeting="下午好"
end if
if hour(Time())>19 or hour(Time())<5 then greeting="晚上好"
end if %>
<%=greeting%>