主题:  我写的ASP,怎么运行不了啊(附代码)

sunviolet

职务:普通成员
等级:1
金币:0.0
发贴:9
#12002/11/16 11:38:34
<%@ LANGUAGE="VBScript" %>

然后在BODY中的Table 中加入如下代码


<% If Time >= #5:00:00 AM# And Time < #11:00:00 AM# Then
Greenting="早上好!"
End If
%>
<% If Time > #1:00:00 PM# And Time <= #5:00:00 PM# Then
Greenting="下午好!"
End If
%>
<% If Time >= #11:00:00 AM# And Time < #12:00:00 AM# Then
Greenting="中午好!"
End If
%>
<% =Greeting %>

superken

职务:普通成员
等级:1
金币:0.0
发贴:27
#22002/11/17 12:38:53
<% =Greeting %>小了个n呀!>_<'



sunviolet

职务:普通成员
等级:1
金币:0.0
发贴:9
#32002/11/18 9:36:58
superken在上个帖子中说
引用:
<% =Greeting %>小了个n呀!>_<'



还是不行啊,我照着改了,还是不行啊
头文件我改成<% Language=VBScript %>

高手,斑竹,难到简单的问题你们都不愿意回答吗,
伤心啊.



水木

职务:普通成员
等级:1
金币:0.0
发贴:145
#42002/11/18 9:41:23
看这个对照一下吧






新建网页 1

<% If Time < #12:00:00# And Time >= #0:00:00# Then
bgc="pink"
ElseIf Time < #22:00:00# And Time >= #12:00:00# Then
bgc="navy"
Else
bgc="black"
End If
%>


<% If Time < #12:00:00# And Time >= #0:00:00# Then %>
Good Morning!
<% ElseIf Time < #22:00:00# And Time >= #12:00:00# Then %>
Good afternoon!
<% Else %>
Welcome to my homepage! Please fill in the form below:


First name:


Last name :


Title : Mr.
Ms.




<%
title=request.form("Title")
If title="mr" Then
%>
Welcome Mr.<% =request.form("lname") %>.
<% ElseIf title="ms" Then %>
Welcome Ms.<% =request.form("lname") %>
<% Else %>
Welcome <% =request.form("fname")&" "&request.form("lname") %>.
<% End If %>
<% End If %>





绿茶

职务:普通成员
等级:8
金币:10.0
发贴:19267
#52002/11/18 9:55:36
<%
If time() >= #5:00:00# And time()< #11:00:00 # Then
Greenting="早上好!"
elseIf time()> #13:00:00 # And time()<= #17:00:00 # Then
Greenting="下午好!"
elseIf time()>= #11:00:00 # And time() < #13:00:00 # Then
Greenting="中午好!"
else
Greenting="休息时间!"
End If
%>






<%=Greenting%> 


编辑历史:[这消息被germchen编辑过(编辑时间2002-11-18 09:57:21)]