网站公告 :
先有卞和慧眼识玉,
才有璞玉磨石成壁。
茶心苦涩遇水甘甜,
网络青阁知己而乐。
效果:
效果请点预览观看
<script> function tick() { var hours, minutes, seconds, xfile; var intHours, intMinutes, intSeconds; var today; today = new Date(); intHours = today.getHours(); intMinutes = today.getMinutes(); intSeconds = today.getSeconds(); if (intHours == 0) { hours = "12:"; xfile = "午夜"; } else if (intHours < 12) { hours = intHours+":"; xfile = "上午"; } else if (intHours == 12) { hours = "12:"; xfile = "正午"; } else { intHours = intHours - 12 hours = intHours + ":"; xfile = "下午"; } if (intMinutes < 10) { minutes = "0"+intMinutes+":"; } else { minutes = intMinutes+":"; } if (intSeconds < 10) { seconds = "0"+intSeconds+" "; } else { seconds = intSeconds+" "; } timeString = xfile+hours+minutes+seconds; Clock.innerHTML = timeString; window.setTimeout("tick();", 100); } window.onload = tick; </script> <div id="Clock" style="font-size: 20; color:#000000"></div>
本站源码和一些文章收集于互联网如有侵权或其它问题请及时联系我们,以便及时处理!
张永庆的空间版权所有 copyright 2009-07-20
( http://www.qgcxjs.com)
All rights reserved 苏ICP备13013770号
苏公网安备 32083002000040号
返回首页 | 源码分享 | 创业经验 |php源码 | asp源码 | 建站代码 | 建站技巧 | 免费祝福