军人离婚:这段网页编程有啥错误呢?我是新手。

来源:百度文库 编辑:高考问答 时间:2024/05/06 04:42:14
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
s1="早安"
if hour(now)>=12 and hour(now)<=17 then
s1="午安"
end if
if hour(now)>=18 then
s1="晚安"
s2="你好"
ss=s1 & "," & s2 &"!"

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<div align="center">
<%
response.Write(ss)
%>
</div>
</body>
</html>

<%
s1="早安"
if hour(now)>=12 and hour(now)<=17 then
s1="午安"
end if
if hour(now)>=18 then
s1="晚安"
end if
s2="你好"
ss=s1 & "," & s2 &"!"

%>


ss=s1 & "," & s2 &"!"

下面一行加上

end if

就ok了.