在线实例

默认 倒计时

使用方法

  1. <h1 style="margin: 40px; font: 32px Microsoft Yahei; text-align: center;">jQuery计时器插件TimeCircles演示1</h1>
  2. <p style="width: 580px; margin: 0 auto; text-align: center;">离2014年1月1日还有(2014年1月1日已过)</p>
  3. <div id="someTimer1" class="someTimer" data-date="2014-01-01 00:00:00" style="width: 700px; margin: 0 auto;"></div>
  4. <p style="width: 580px; margin: 0 auto; text-align: center;">倒计时10秒后结束</p>
  5. <div id="someTimer2" class="someTimer" data-timer="10" style="width: 700px; margin: 0 auto;"></div>
  6. <p style="width: 580px; margin: 0 auto; text-align: center;">页面开始时计时</p>
  7. <div id="someTimer3" class="someTimer" style="width: 700px; margin: 0 auto;"></div>
复制
  1. $(function() {
  2. $('#someTimer1').TimeCircles({
  3. time: {
  4. Days: {
  5. show: false,
  6. text: "天",
  7. color: "#FC6"
  8. },
  9. Hours: {
  10. show: false,
  11. text: "时",
  12. color: "#9CF"
  13. },
  14. Minutes: {
  15. show: false,
  16. text: "分",
  17. color: "#BFB"
  18. },
  19. Seconds: {
  20. show: false,
  21. text: "秒",
  22. color: "#F99"
  23. }
  24. }
  25. });
  26. $('#someTimer2').TimeCircles({
  27. time: {
  28. Days: {
  29. show: false,
  30. text: "天",
  31. color: "#FC6"
  32. },
  33. Hours: {
  34. show: false,
  35. text: "时",
  36. color: "#9CF"
  37. },
  38. Minutes: {
  39. show: false,
  40. text: "分",
  41. color: "#BFB"
  42. },
  43. Seconds: {
  44. show: false,
  45. text: "秒",
  46. color: "#F99"
  47. }
  48. },
  49. refresh_interval: 0.1,
  50. count_past_zero: false,
  51. circle_bg_color: "#ddd",
  52. fg_width: 0.03,
  53. bg_width: 0.2
  54. });
  55. $('#someTimer3').TimeCircles({
  56. time: {
  57. Days: {
  58. show: false,
  59. text: "天",
  60. color: "#FC6"
  61. },
  62. Hours: {
  63. show: false,
  64. text: "时",
  65. color: "#9CF"
  66. },
  67. Minutes: {
  68. show: false,
  69. text: "分",
  70. color: "#BFB"
  71. },
  72. Seconds: {
  73. show: false,
  74. text: "秒",
  75. color: "#F99"
  76. }
  77. },
  78. refresh_interval: 0.1,
  79. count_past_zero: true,
  80. circle_bg_color: "#eee",
  81. fg_width: 0.05,
  82. bg_width: 1
  83. });
  84. });
复制

jQuery TimeCircles 倒计时的更多相关文章

  1. jQuery实现倒计时效果-杨秀徐

    本实例效果:剩余368天22小时39分57秒结束 代码简单易懂,适用各种倒计时: <!DOCTYPE html> <head> <title>jQuery实现倒计时 ...

  2. jQuery自适应倒计时插件

    jQuery自适应倒计时插件 在线演示本地下载

  3. jQuery实现倒计时重新发送短信验证码功能示例

    <!doctype html> <html> <head> <meta charset="utf-8"> <title> ...

  4. jquery.countdown 倒计时插件的学习

    1.第一种简单的使用 第一个时间是你的倒计时截止时间,finalDate格式可以是YYYY/MM/DD MM/DD/YYYY YYYY/MM/DD hh:mm:ss MM/DD/YYYY hh:mm: ...

  5. jquery实现倒计时

    <html> <head> <meta charset="utf-8"/> <title>jquery实现倒计时</title ...

  6. jQuery控制倒计时

    1.1 秒杀的倒计时 做秒杀网页总免不了倒计时,但没有很好的服务器,啥资源都没有,只能将部分任务交给浏览器去处理,比如秒杀首页的倒计时,因为真正秒杀是在具体页面,首页只是展示而已,所以误差一点是允许的 ...

  7. jQuery简单倒计时插件

    一. 效果预览 二. 实现 1. 按照特定的类结构布局. 2. 需要先引入jQuery,再引入此文件. /** * Author: CC11001100 * * 简单倒计时 * * 1. 支持页面内同 ...

  8. jquery网页倒计时效果,秒杀,限时抢购!

    <!doctype html> <html> <head> <meta charset="utf-8"> <title> ...

  9. jquery 60s倒计时

    前端开发中经常用到的发送按钮倒计时,每次都是重写,挺麻烦的,记录一下,以后直接来复制代码 <!DOCTYPE html> <html> <head> <met ...

随机推荐

  1. TSQL Merge 用法

    在更新数据仓库时,经常需要根据源表对Target表进行数据同步,Merge 命令具有数据更新,删除,插入的功能,专门用于数据同步,并将数据的更新输出到表中.在使用Merge命令时,需要注意when n ...

  2. Update: ELCImagePickerController

    March 3rd, 2011 Posted by: Matt Tuzzolo - posted under:Articles » Featured I recently spent some tim ...

  3. 使用Depth Texture

    使用Depth Textures: 可以将depth信息渲染到一张texture,有些效果的制作会需要scene depth信息,此时depth texture就可以派上用场了. Depth Text ...

  4. 深入理解PHP内核(四)概览-PHP脚本的执行

    本文链接:http://www.orlion.ml/236/ 下面以php命令行程序为例解释PHP脚本是怎么被执行的.例如如下脚本: <?php $str = 'hello world'; ec ...

  5. struts2结果(Result)

    一.结果(result)类型 result的type属性默认为dispatcher,其他常见的属性有redirect\chain\redirectAction <action name=&quo ...

  6. 将数据转化成字符串时:用字符串的链接 还是 StringBuilder

    /* 目的:将数据转化成字符串时:用字符串的链接 还是 StringBuilder呢? */ public class Test{ public static void main(String[] a ...

  7. timus_1007_代码字

    题目要求:对于所有一个长度为N的字(这些字由0和1组成),在经过一条线路后,这些字可能会做如下的修改: 1. 0可能变成1,但只能发生一次. 2. 0或者1可能被去掉,但也只能发生一次. 3. 0或者 ...

  8. 工作单元模式(UnitOfWork)学习总结

    工作单元的目标是维护变化的对象列表.使用IUnitOfWorkRepository负责对象的持久化,使用IUnitOfWork收集变化的对象,并将变化的对象放到各自的增删改列表中, 最后Commit, ...

  9. c#基础之长度可变类型相同的参数列表

    为了简化编码,c#提供了一个特殊的关键字params,允许在调用方法时提供数量可变的实参,而不是由方法实现固定好的形参数量.先看代码吧. using System; using System.Linq ...

  10. Unity3d知识体系思维导图

    整理了一下U3D的技能树.