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>
评论(0)