多了一个分号<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<title>无标题文档 </title> 
</head> 
<script language="javascript"> 
function checkq()//;这里这个 
{ document.write ("dfasf"); 

</script> 
<body> 
<form action="" method="get" name="hh"> 
<table align="right" style=" position:absolute;left:800;top:200" > 
<tr> <td>帐号 </td> <td> <input type="text" name="us"> </td> 
<tr> <td>密码 </td> <td> <input type="password" name="pw"> </td> 
<tr> <td> <input type="button" onClick="checkq()" value="登陆" > </td> <td> <input type="reset" > </td> 
</table> 
</form> 
</body> 
</html>