首页
网页特效库
网页特效库
导航菜单
按钮表单
背景特效
时间日期
图片特效
鼠标特效
文本操作
窗口页面
状态栏类
警告对话
综合应用
游戏娱乐
首页
>
特效
>
时间日期
> 正文
时间流水线
2011-09-27 时间日期 553℃
先把下列代码复制到<head></head>之间: <script LANGUAGE="JavaScript"> <!-- Begin function clock() { var t = new Date(); var h = t.getHours(); var m = t.getMinutes(); var s = t.getSeconds(); var units = new String(""); var hours = t.getHours(); var min = t.getMinutes(); var sec = t.getSeconds(); document.clock.hours.value = units.substring(0, hours); document.clock.minutes.value = units.substring(0, min); document.clock.seconds.value = units.substring(0, sec); var status = "AM"; if (hours > 11) status = "PM"; if (hours < 11) hours -= 12; if (min < 10) min = "0" + min; if (sec < 10) sec = "0" + sec; document.clock.h.value = hours; document.clock.m.value = min; document.clock.s.value = sec; document.clock.time.value = hours + ":" + min + ":" + sec + " " + status; window.setTimeout("clock()", 900); } // End --> </script> 再把下列代码复制到<body></body>之间: <body bgcolor="#000000" text="#999999" link="#33FF33" vlink="#33FF33" alink="#33FF33" onLoad="clock();"> <form name="clock"> <table align="center"> <tr> <td> <font color="#33FF33">时:</font></td> <td> <input type="text" name="h" size="10" style="background-color: #000000; color: #00FF00"> </td> </tr> <tr> <td colspan=2> <input type=text name="hours" size="24" style="color: navy"> </td> </tr> <tr> <td> <font color="#33FF33">分:</font></td> <td> <input type="text" name="m" size="10" style="background-color: #000000; color: #33FF33"> </td> </tr> <tr> <td colspan=2> <input type=text name="minutes" size="60" style="color: navy"> </td> </tr> <tr> <td> <font color="#33FF33">秒:</font></td> <td> <input type="text" name="s" size="10" style="background-color: #000000; color: #00FF00"> </td> </tr> <tr> <td colspan=2> <input type=text name="seconds" size="69" style="color: navy"> </td> </tr> <tr> <td> <font color="#33FF33">现在时间:</font> <input type=text name="time" size="20" style="border: 0"> </td> </tr> </table> </form> <p align="center">双击文本框可以看到效果
相关特效代码
退出时显示停留时间提醒
08/03
显示访问本站多久时间
08/03
年月日-当前英文时间
07/20
八种风格的时间日期特效代码
06/24
跟随鼠标的日期时间表盘
12/25
不同时间段显示不同 问 候 语
12/24
动态在状态栏显示时间
12/23
不同时间段显示不同问候语
12/22
设置多少时间后才弹出窗口
12/22
图片规定时间消失的特效
11/26
热门特效代码
世界时间一览表
时间流水线
相当漂亮的蓝色精美日历
今天是:年月日-日期-星期几
纯JavaScript时钟
年月日-当前英文时间
小而强大的万年历
最简洁事件代码格式如:xxxx年x月
2010日历生成器
显示访问本站多久时间
推荐特效代码
年月日-当前英文时间
今天是:年月日-日期-星期几
最简洁事件代码格式如:xxxx年x月
八种风格的时间日期特效代码
常见的选择日期效果
模拟时钟