请补全如下代码:
<script&NBSP;LANGUAGE=____________> </script&NBSP;LANGUAGE=____________>
Dim hours
hours = _______
if _______ then
document.write_______
______________
______________
_____________
______________
______________
______________
End if
答:
"VBScript"
hour(now)
hours < 6
("凌晨好!")
elseif hours < 12 then
document.write("早上好!")
elseif hours < 18 then
document.write("下午好!")
else
document.write("晚上好!")
请编写程序段,判断年龄,如果大于18岁,则显示“已成年”,否则显示“未成年”,要求使用一个表单进行交互,表单处理页面文件为本页面文件如test1.asp。请补全如下代码:
<%@ Language=vbscript %>
输入年龄:
<%
age=_________
If_______then
________
_____
_______
____________
%>
答:
"test1.asp"
t1
"text"
"submit"
request.form("t1");
age >=18
Info="已成年"
else
Info="未成年"
response.write( Info)