java秒表如何实现动态显示“已过时间”
若以下回答无法解决问题,邀请你更新回答
1个回答
展开全部
onal.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Demo</title>
<script type="text/javascript">
function openClock()
{
var obj = document.getElementById("Time");
var s = new Date();
obj.innerHTML = s.getHours()+":"+s.getMinutes()+":"+s.getSeconds()+":"+s.getMilliseconds();
ID = setTimeout("openClock()",1);
}
</script>
<style type="text/css">
body{ background-color:#fff}
p{ color:#0066CC}
#title{font-size:50px; text-align:center; font-family:"Courier New", Courier, monospace; font-weight:bold}
#Time{ font-size:150px; text-align:left color:#0033FF;margin-left:300px;margin-top:10px;position:relative;}</style>
</head>
<body>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Demo</title>
<script type="text/javascript">
function openClock()
{
var obj = document.getElementById("Time");
var s = new Date();
obj.innerHTML = s.getHours()+":"+s.getMinutes()+":"+s.getSeconds()+":"+s.getMilliseconds();
ID = setTimeout("openClock()",1);
}
</script>
<style type="text/css">
body{ background-color:#fff}
p{ color:#0066CC}
#title{font-size:50px; text-align:center; font-family:"Courier New", Courier, monospace; font-weight:bold}
#Time{ font-size:150px; text-align:left color:#0033FF;margin-left:300px;margin-top:10px;position:relative;}</style>
</head>
<body>
追问
大神,你这个好像不是java代码的吧
大神,你这个好像不是java代码的吧
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询