这是我自己写的一个网页的源代码,求哪位牛人用随机函数修改一下,是鼠标点不到其中一个按钮
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>求指点</title>
<hr width="550" size="10" color="red">
</head><body>
<tytle>
<div align="center">我需要高手的帮助</div>
</tytle>
<hr width="550" size="10" color="green" />
<form name="form1" method="post" action="" >
<div align="center">
<input type="submit" name="shi" value="是的,我帮助你" />
<input type="submit" name="fou" value="否!" />
</div>
</form>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>求指点</title>
<hr width="550" size="10" color="red">
</head><body>
<tytle>
<div align="center">我需要高手的帮助</div>
</tytle>
<hr width="550" size="10" color="green" />
<form name="form1" method="post" action="" >
<div align="center">
<input type="submit" name="shi" value="是的,我帮助你" />
<input type="submit" name="fou" value="否!" />
</div>
</form>
</body>
</html>
<script>
var d = ['shi', 'fou'];
var i = Math.random( )>0.5 ? 1: 0;
document.form1[d[i]].disabled = true;
</script>