这一段代码是怎么实现点击button暂停时间的呀!
<head>
<title>时间暂停</title>
<script type="text/javascript">
var int = self.setInterval("clock()", 50)
function clock() {
var t = new Date();
document.getElementById("clock").value = t;
}
</script>
</head>
<body>
<input type="text" id="clock" size="35" />
<button onclick="int=window.clearInterval(int)">
Stop interval</button>
</body>
</html>
Lemon156
resharpe