为什么只能runat=server
隐者神归 2003-08-28 03:25:39 <% @language=VBScript %>
<% Option Explicit %>
<html>
<head><title>有限公司</title></head>
<body topmargin=#10 bgcolor=#F0F0FF text=#000000 link=#FF00F0 alink=#FF000F vlink=#00FFFF>
<hr size>
<script language=vbscript runat=client>
dim nwidth
nwidth=screen.width
</script>
<table border width=nwidth height=100>
<tr><th bgcolor=#FE00F9><font size=2>主题</font></th><th><font size=2>发表者</font></th><th><font size=2>时间</font></th></tr>
<tr>
<td>
<%
Dim dtmtime
dtmtime=date() & " " & time()
Response.Write "<p align=left ><font size=2> 建设中........." & dtmtime & "</font></p>"
%>
</td>
</tr>
</table>
</body>
</html>
报错:
Script 标记或 Object 标记的 Runat 属性只能有 'Server' 值。