20131120
来源:互联网 发布:jquery循环json数组 编辑:程序博客网 时间:2024/06/06 02:20
文字闪烁:
<font id="blink" color="#fff">文字闪烁</font>
<script>
setInterval(function(){blink.color=blink.color=='#fff'?'red':'#fff'},1000)
</script>
数字时钟:
<div id="clock"></div>
<script>
function changeClock(){
var box = new Date();
document.getElementById("clock").innerHTML = box.getFullYear() + "-" + (box.getMonth() + 1) + "-" + box.getDate() + " " + box.getHours() + ":" + box.getMinutes() + ":" + box.getSeconds();
}
window.setInterval(changeClock, 1000);
</script>
效果截图不太好截,就没截了。
- 20131120
- iOS学习笔记20131120
- 工作中发现的问题20131120
- 在 Android 应用程序中使用 Internet 数据 解析 XML、JSON 和 protocol buffers 数据
- GSON使用的学习笔记,进阶篇(二)
- Maven提高篇系列之四——使用Profile
- 关于文件描述符(File descriptor)
- JS特殊用途
- 20131120
- java面试题目总结
- java 空对象的理解
- 指针理解,指针降级
- MySQL Cluster Error msg
- UCGUI+触摸在STM32上的移植
- 项目管理---SVN,Subversion的安装,客户端和服务端
- 为 Android 开发访问 JAX-RS Web 服务的 Apache HttpClient 客户端 学习创建 Apache HttpClient Android 客户端
- 表单文本输入框默认值的自动清除和恢复