<%
week=DatePart("w",Date())
if week=1 then
Response.write"<font color=red>"
else if week=2 then
Response.write"<font color=pink>"
else
Response.write"</font>"
end if
%>
<html>
jiangjie
</html>
...全文
238打赏收藏
找错误,在线等,,,,
<% week=DatePart("w",Date()) if week=1 then Response.write"" else if week=2 then Response.write"" else Response.write"" end if %> jiangjie
<%
week=DatePart("w",Date())
if week=1 then
Response.write "1"
else
if week=2 then
Response.write "2"
else
Response.write "3"
end if
end if
%>
<html>
jiangjie
</html>
elseif
和
else if
是不同的
我才注意到你用的是后者
jerry_xi(jerry) 说的对,少了end if
可是
jerry_xi(jerry) 的代码还是有错误的
因为
<font...>不能写到<html>外啊
所以应该是
<html>
<%
week=DatePart("w",Date())
if week=1 then
Response.write"<font color=red>"
else if week=2 then
Response.write"<font color=pink>"
end if
end if
%>
jiangjie
<%
Response.write"</font>"
%>
</html>
<%
week=DatePart("w",Date())
if week=1 then
Response.write"<font color=red>"
else if week=2 then
Response.write"<font color=pink>"
else
Response.write"</font>"
end if
end if
%>
<html>
jiangjie
</html>
<html>
<%
week=DatePart("w",Date())
if week=1 then
Response.write"<font color=red>"
else if week=2 then
Response.write"<font color=pink>"
end if
%>
jiangjie
<%
Response.write"</font>"
%>
</html>