大家帮忙,一小段代码

mygodness 2003-05-29 07:48:43
我是从网上复制的代码,我是初学的。。
总是说第九行第三列有问题,我知道可能是说那个空格是全角空格。但我在英文输入法里按空格代替,仍然出错。。我快气死了。谢谢救命呀
<html>
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<fontcolor="Green">
<%if time < #12:00:00# and time>=#00:00:00# then%>
早上好,今天天气不错呀!
<% else if time<#19:00:00#andtime>=#12:00:00# then %>
下午好!
<%else%>
哈喽!今晚你有没有去IRC聊天!
<%endif%>
</font>
</body>
</html>
...全文
20 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
chjpeng 2003-05-29
  • 打赏
  • 举报
回复
elseif而不是else if,可省掉一下<%end if%>
如下:

<% elseif time<#19:00:00# and time>=#12:00:00# then %>
下午好!
<% else %>
哈?!今晚你有沒有去IRC聊天!
<% end if %>
</font>
chjpeng 2003-05-29
  • 打赏
  • 举报
回复
以下代碼通過,空格和endif

<html>
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312">
<title>無標題文檔</title>
</head>
<body>
<font color="Green">
<% if time<#12:00:00# and time>=#00:00:00# then %>
早上好,今天天气不錯呀!
<% else if time<#19:00:00# and time>=#12:00:00# then %>
下午好!
<% else %>
哈?!今晚你有沒有去IRC聊天!
<% end if %>
<% end if %>
</font>
</body>
</html>
chichuli_4 2003-05-29
  • 打赏
  • 举报
回复
<%end if%>
jshao 2003-05-29
  • 打赏
  • 举报
回复
< #12:00:00# and time>空格去掉看看
mygodness 2003-05-29
  • 打赏
  • 举报
回复
谢谢,试试先

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧