急人,郁闷,拷贝下来的示例代码不运行,请大家看看
qstc 2004-11-22 02:09:46 代码如下,其中的脚本是从洪恩网站拷贝的,html的代码基本上是dreamweave生成的
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script>
function click() {
if (event.button==2) {
alert('你想看什麽?')
} }
document.onmousedown=click
</script>
</head>
<body>
<form action="welcom1.jsp" method="post" >
<p>
用户名:<input type="text" name="account" >
</p>
<p>
密码:<input type="password" name="password" >
</p>
<br>
<input type="submit" name="sub" >
</form>
</body>
</html>
我无非就是想看一下鼠标按下时弹出一个信息,可这个sb代码就是不来米,求教,