求用javascript写个跑表计时器

来源:百度知道 编辑:UC知道 时间:2024/09/21 10:36:37
才学javascript会简单的到记时计算,想写个跑表,想了很久还是不会,哪为大大帮写个啊 比如2个按钮1个开始也可以暂时,另个重置时间的按钮,显示效果如00:05.46 最后是精确到毫秒

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=gb2312" http-equiv="content-type" />
<title>Untitled Page</title>
</head>
<body>
<center>
<input id="showtime" type="text" disabled="disabled" value="00:00:00:000" /><br /><input id="pause" type="button" value="start" /><input id="reset" type="button" value="reset" />
</center>
</body>