cf代练平台:ASP做网页,怎么不出现汉字?

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/01 22:28:32
讲的详细点。<html>
<body>
<table width="80%" height="120" border="1" align="center">
<tr><td align="center">
<script language="JavaScript">
document.write("现在时间是")
document.write(time)
document.write("<br>")

if time>=#7:00:00# and time<#12:00:00# then
greeting="早上好"
else
if time>=#12:00:00# and time<#18:00:00# then
greeting="下午好"
else
greeting="晚上好"
end if
end if
document.write(greeting)
</script>
</td></tr>
</table>
</body>
</html>
?不能使用JAVASCRIPT,而要用VBSCRIPT,请指教。
我看书了,不是VBSCRIPT的脚本可以用VBSCRIPT代替吗?

<script language="JavaScript">

老大这是VBSCRIPT哪。改成
<script language="VBScript">

紧接<HTML>在<BODY>以前 加入下面的句子。注意标点符号别打错。

如果网页书写用的是国标中文码则gb2312,若UTF-8则UTF-8。

<head>
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=gb2312">
</head>

注意end if

<html>
<body>
<table width="80%" height="120" border="1" align="center">
<tr><td align="center">
<%
document.write("现在时间是")
document.write(time)
document.write("<br>")

if time>=#7:00:00# and time<#12:00:00# then
greeting="早上好"
else
if time>=#12:00:00# and time<#18:00:00# then
greeting="下午好"
else
greeting="晚上好"
end if
end if
document.write(greeting)
%>
</td></tr>
</table>
</body>
</html>