最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

jQuery幸运大转盘

来源:动视网 责编:小采 时间:2020-11-27 20:28:59
文档

jQuery幸运大转盘

jQuery幸运大转盘:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv
推荐度:
导读jQuery幸运大转盘:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>jQuery幸运大转盘_jQuery+PHP抽奖程序(上)</title>
 <style type="text/css">
 .demo{ position:relative;width:417px;}
 #disk{width:417px; height:417px; background:url(/api/jq/5733e347040d9/images/disk.jpg) no-repeat;}
 #start{width:163px; height:320px; position:absolute; top:46px; left:130px;}
 #start img{cursor:pointer}
 </style>
 </head>
 <body>
 <div class="container">
 <div class="demo">
 <div id="disk"></div>
 <div id="start"><img src="/api/jq/5733e347040d9/images/start.png" id="startbtn" alt="转盘开启"/></div>
 </div>
 </div>
 <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.7.2/jquery.min.js"></script>
 <script type="text/javascript" src="/api/jq/5733e347040d9/jQueryRotate.2.2.js"></script>
 <script type="text/javascript" src="/api/jq/5733e347040d9/jquery.easing.min.js"></script>
 <script type="text/javascript">
 $(function() {
 $("#startbtn").rotate({
 bind: {
 click: function() {
 var random = Math.floor(Math.random() * 360); //生成随机数
 $(this).rotate({
 duration: 3000, //转动时间间隔(速度单位ms)
 angle: 0, //指针开始角度
 animateTo: 3600 + random, //转动角度,当转动角度到达3600+random度时停止转动。
 easing: $.easing.easeOutSine, //easing动画效果
 callback: function() { //回调函数
 alert('恭喜您,中奖了!');
 }
 });
 }
 }
 });
 });
 </script>
 </body>
</html>

文档

jQuery幸运大转盘

jQuery幸运大转盘:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv
推荐度:
标签: 幸运 大转盘 jQuery
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top