android 时钟进度条,CSS3时钟式进度条

/p>

Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

CSS3时钟式进度条

http-equiv="content-type" content="text/html;charset=gb2312">

#cricle{200px;height:200px;position:relative;background:#333;overflow:hidden}

#cricle

.left,#cricle .right,#cricle .text{200px;height:200px}

#cricle

.text{position:absolute;top:0;left:0;z-index:41;color:#fff;font:26px/200px

'arial';text-align:center}

#cricle .mask{z-index:40}

#cricle .mask,#cricle

.bg{100px;height:200px;background:#333;position:absolute;top:0}

#cricle

.bg{background:url(/jscss/demoimg/201207/bg_green.png) no-repeat 0 0}

#cricle

.mask,#cricle .left .bg{left:0}

#cricle .right{display:none}

#cricle

.right .bg{background-position:right

top;right:0}

id="cricle">

class="left">

class="bg">

class="right">

class="bg">

class="text">

var C = function(id){

this.box =

$("#"+id);

this.left = this.box.find(".left");

this.right =

this.box.find(".right");

this.mask =

this.box.find(".mask");

this.text =

this.box.find(".text");

this.d = 0;

this.A =

null;

this.init();

}

C.prototype = {

init :

function(){

var T = this;

this.A =

window.setInterval(function(){T.change()},80);

},

change :

function(){

var T =

this;

if(this.d>180){

if(this.d>360){

window.clearInterval(this.A);

this.A

=

null;

return;

}

this.right.show();

this.mask.hide();

}

this.text.text(parseInt(this.d/3.6));

this.left.css({

"-webkit-transform":"rotate("+this.d+"deg)",

"-moz-transform":"rotate("+this.d+"deg)"

})

this.d

+= 6;

}

}

new

C("cricle");

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值