jQuery TimeCircles 倒计时
在线实例
| 默认 | 倒计时 |
使用方法
- <h1 style="margin: 40px; font: 32px Microsoft Yahei; text-align: center;">jQuery计时器插件TimeCircles演示1</h1>
- <p style="width: 580px; margin: 0 auto; text-align: center;">离2014年1月1日还有(2014年1月1日已过)</p>
- <div id="someTimer1" class="someTimer" data-date="2014-01-01 00:00:00" style="width: 700px; margin: 0 auto;"></div>
- <p style="width: 580px; margin: 0 auto; text-align: center;">倒计时10秒后结束</p>
- <div id="someTimer2" class="someTimer" data-timer="10" style="width: 700px; margin: 0 auto;"></div>
- <p style="width: 580px; margin: 0 auto; text-align: center;">页面开始时计时</p>
- <div id="someTimer3" class="someTimer" style="width: 700px; margin: 0 auto;"></div>
- $(function() {
- $('#someTimer1').TimeCircles({
- time: {
- Days: {
- show: false,
- text: "天",
- color: "#FC6"
- },
- Hours: {
- show: false,
- text: "时",
- color: "#9CF"
- },
- Minutes: {
- show: false,
- text: "分",
- color: "#BFB"
- },
- Seconds: {
- show: false,
- text: "秒",
- color: "#F99"
- }
- }
- });
- $('#someTimer2').TimeCircles({
- time: {
- Days: {
- show: false,
- text: "天",
- color: "#FC6"
- },
- Hours: {
- show: false,
- text: "时",
- color: "#9CF"
- },
- Minutes: {
- show: false,
- text: "分",
- color: "#BFB"
- },
- Seconds: {
- show: false,
- text: "秒",
- color: "#F99"
- }
- },
- refresh_interval: 0.1,
- count_past_zero: false,
- circle_bg_color: "#ddd",
- fg_width: 0.03,
- bg_width: 0.2
- });
- $('#someTimer3').TimeCircles({
- time: {
- Days: {
- show: false,
- text: "天",
- color: "#FC6"
- },
- Hours: {
- show: false,
- text: "时",
- color: "#9CF"
- },
- Minutes: {
- show: false,
- text: "分",
- color: "#BFB"
- },
- Seconds: {
- show: false,
- text: "秒",
- color: "#F99"
- }
- },
- refresh_interval: 0.1,
- count_past_zero: true,
- circle_bg_color: "#eee",
- fg_width: 0.05,
- bg_width: 1
- });
- });
jQuery TimeCircles 倒计时的更多相关文章
- jQuery实现倒计时效果-杨秀徐
本实例效果:剩余368天22小时39分57秒结束 代码简单易懂,适用各种倒计时: <!DOCTYPE html> <head> <title>jQuery实现倒计时 ...
- jQuery自适应倒计时插件
jQuery自适应倒计时插件 在线演示本地下载
- jQuery实现倒计时重新发送短信验证码功能示例
<!doctype html> <html> <head> <meta charset="utf-8"> <title> ...
- jquery.countdown 倒计时插件的学习
1.第一种简单的使用 第一个时间是你的倒计时截止时间,finalDate格式可以是YYYY/MM/DD MM/DD/YYYY YYYY/MM/DD hh:mm:ss MM/DD/YYYY hh:mm: ...
- jquery实现倒计时
<html> <head> <meta charset="utf-8"/> <title>jquery实现倒计时</title ...
- jQuery控制倒计时
1.1 秒杀的倒计时 做秒杀网页总免不了倒计时,但没有很好的服务器,啥资源都没有,只能将部分任务交给浏览器去处理,比如秒杀首页的倒计时,因为真正秒杀是在具体页面,首页只是展示而已,所以误差一点是允许的 ...
- jQuery简单倒计时插件
一. 效果预览 二. 实现 1. 按照特定的类结构布局. 2. 需要先引入jQuery,再引入此文件. /** * Author: CC11001100 * * 简单倒计时 * * 1. 支持页面内同 ...
- jquery网页倒计时效果,秒杀,限时抢购!
<!doctype html> <html> <head> <meta charset="utf-8"> <title> ...
- jquery 60s倒计时
前端开发中经常用到的发送按钮倒计时,每次都是重写,挺麻烦的,记录一下,以后直接来复制代码 <!DOCTYPE html> <html> <head> <met ...
随机推荐
- TSQL Merge 用法
在更新数据仓库时,经常需要根据源表对Target表进行数据同步,Merge 命令具有数据更新,删除,插入的功能,专门用于数据同步,并将数据的更新输出到表中.在使用Merge命令时,需要注意when n ...
- Update: ELCImagePickerController
March 3rd, 2011 Posted by: Matt Tuzzolo - posted under:Articles » Featured I recently spent some tim ...
- 使用Depth Texture
使用Depth Textures: 可以将depth信息渲染到一张texture,有些效果的制作会需要scene depth信息,此时depth texture就可以派上用场了. Depth Text ...
- 深入理解PHP内核(四)概览-PHP脚本的执行
本文链接:http://www.orlion.ml/236/ 下面以php命令行程序为例解释PHP脚本是怎么被执行的.例如如下脚本: <?php $str = 'hello world'; ec ...
- struts2结果(Result)
一.结果(result)类型 result的type属性默认为dispatcher,其他常见的属性有redirect\chain\redirectAction <action name=&quo ...
- 将数据转化成字符串时:用字符串的链接 还是 StringBuilder
/* 目的:将数据转化成字符串时:用字符串的链接 还是 StringBuilder呢? */ public class Test{ public static void main(String[] a ...
- timus_1007_代码字
题目要求:对于所有一个长度为N的字(这些字由0和1组成),在经过一条线路后,这些字可能会做如下的修改: 1. 0可能变成1,但只能发生一次. 2. 0或者1可能被去掉,但也只能发生一次. 3. 0或者 ...
- 工作单元模式(UnitOfWork)学习总结
工作单元的目标是维护变化的对象列表.使用IUnitOfWorkRepository负责对象的持久化,使用IUnitOfWork收集变化的对象,并将变化的对象放到各自的增删改列表中, 最后Commit, ...
- c#基础之长度可变类型相同的参数列表
为了简化编码,c#提供了一个特殊的关键字params,允许在调用方法时提供数量可变的实参,而不是由方法实现固定好的形参数量.先看代码吧. using System; using System.Linq ...
- Unity3d知识体系思维导图
整理了一下U3D的技能树.