改成这样试试:
<script language="vbscript" runat="server">
//检验邮件格式的正确
Function isemail(strng)
isemail = false
Dim regEx,Match
set RegEx = new RegExp
RegEx.Pattern = "^\w+((-\w+)|(.\w+))*@[A-Za-z0-9]+((.|-)[A-Za-z0-9]+)*.[A-Za-z0-9]+$"
RegEx.IgnoreCase = true
set Match = RegEx.Execute(strng)
if Match.count then isemail = true
End if
End Function
</script>
-----------11111-------
<script language="vbscript">
vbs代码
</script>
----------22222--------
<script language="vbscript" runat="server">
vbs代码
</script>
--------------------------
11111:是在客户端执行的
22222:是在服务端执行的
[[it] 本帖最后由 lele2007 于 2008-2-11 22:13 编辑 [/it]]