jquery计时器 函数
给class=”ball”的div内容增添滚动数字效果
function ball(i,value)
{ var count=0;
var time=5000/value;
var ballid=$('.ball').eq(i);
timer=setInterval(function(){
if(count<value)
{
count++;
ballid.html(count);
}
else
{
clearInterval(timer);
}
}
,time)
}