日期:2014-05-16  浏览次数:21282 次

希望大家帮忙看看
<html>
 <head>
  <title> New Document </title>
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
 </head>
 <body>
 <script language=vbscript>
  Function check()
  If form1.txtname.value="" Or form1.txtpwd.value="" Then
  form1.txtPwd.fouse
  End If
  End function
  </script>
  <div align=center>
  <form name="form1" method="post" action="try2.asp">
  用户名:<input type="text" name="txtname"><br>
  密码:    <input type="password" name="txtpwd"><br>
  <input type="button" value="注册" onclick="<% check() %> ">
  <input type="reset" value="重置">
  </form>
 </body>
</html>
出现错误
Microsoft VBScript 运行时错误 错误 '800a000d' 

类型不匹配: 'check' 

/try1.asp,行 22 
怎么改啊
vbscript editplus

------解决方案--------------------
 <input type="button" value="注册" onclick="check() ">

加<%%>就是服务器端代码了,你又没有定义check函数什么的,只定义了客户段的check