jQuery实现圆盘活动抽奖程序效果

时间:2014-04-29 19:23:59   收藏:0   阅读:482
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="jQueryRotate.2.2.js"></script>
<script type="text/javascript" src="jquery.easing.min.js"></script>
<script type="text/javascript">
$(function(){
    $("#startbtn").rotate({
        bind:{
            click:function(){
                var a = Math.floor(Math.random() * 360);
                 $(this).rotate({
                       duration:3000,
                       angle: 0,
                        animateTo:1440+a,
                        easing: $.easing.easeOutSine,
                        callback: function(){
                            alert(‘中奖了!‘+a);
                        }
                 });
            }
        }
    });
});
</script>
 

jQuery实现圆盘活动抽奖程序效果,码迷,mamicode.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!