页面时钟
来源:互联网 发布:木门销售软件 编辑:程序博客网 时间:2024/05/22 05:24
<html>
<head>
<meta http-equiv="Content-Type" content="text//html;charset=utf-8">
<title>页面时钟</title>
<script type= "text/javascript">
</head>
<body>
<input type="text" size="30" id="one" /><br>
<input type="button" id="otwo" value="开始" onclick="fun1"/><br>
<input type="button" id="three" value="结束" onclick="fun2"/><br>
<script>
var id ;
function fun1{
setTime();
if(!id){
setInterval(setTime,1000);
}
}
function setTime(){
var data = new Date();
document.getElementById("one").value = data.toLocaleString();
}
function fun2(){
clearInterval(id);
id = undefined;
}
</script>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text//html;charset=utf-8">
<title>页面时钟</title>
<script type= "text/javascript">
</head>
<body>
<input type="text" size="30" id="one" /><br>
<input type="button" id="otwo" value="开始" onclick="fun1"/><br>
<input type="button" id="three" value="结束" onclick="fun2"/><br>
<script>
var id ;
function fun1{
setTime();
if(!id){
setInterval(setTime,1000);
}
}
function setTime(){
var data = new Date();
document.getElementById("one").value = data.toLocaleString();
}
function fun2(){
clearInterval(id);
id = undefined;
}
</script>
</body>
</html>
0 0
- 页面时钟
- 页面时钟倒计时
- js 实现页面时钟
- JS页面时钟
- 页面显示时钟
- 简单的页面时钟显示
- 简单的页面显示时钟
- 在HTML页面显示时钟
- 页面时钟表的设计
- 放个个性时钟到页面
- 简单的JS页面电子时钟
- JS在页面中显示一个时钟
- 在JSP页面显示动态时钟
- js 在页面加入人体时钟
- 在页面中,实现时钟效果。
- HTML5 简单页面实现时钟效果
- setInterval与setTimeout实现页面动态时钟
- 时钟
- C# 通过NPOI导入导出数据EXCEL
- C# 之VS程序打包
- 深入理解JavaScript系列(19):求值策略(Evaluation strategy)
- Android中实现底部导航栏的功能
- linux查看及修改文件权限以及相关
- 页面时钟
- PAT 乙等 1025 反转链表
- 具体阐述windows Azure 中的web role
- 简易对话机器人
- 小白题解 Codeforces 798A Mike and palindrome
- 滤波器设计--C语言实现
- 深入理解JavaScript系列(20):《你真懂JavaScript吗?》答案详解
- bzoj 1053: [HAOI2007]反素数ant
- ORA-00313、00312、27047