当前路径: 星河码客 » 插件特效 » 只要指针转jQuery手机端转盘抽奖插件_JS抽奖特效源码下载

只要指针转jQuery手机端转盘抽奖插件_JS抽奖特效源码下载

使用教程首先引用js文件HTML结构很简单

下面是CSS样式.box{ position:relative; max-width:750px; margin:0 auto;}.box .img01{ width:100%;}.box .drawBtn{ position:absolute; width:10rem; height:auto; left:50%; margin-left:-5rem;}.box1{ position:relative; max-width:750px; margin:0 auto;}.box1 .img01{ width:100%;}.box1 .drawBtn2{ position:absolute; width:10rem; height:auto; left:50%; margin-left:-5rem;}最后调用function callbackA(ind){ alert("第一个回调"+ind);};function callbackB(ind){ alert("第二个回调"+ind);};var newdraw =new turntableDraw('.drawBtn',{ share:8, speed:"3s", velocityCurve:"ease", weeks:6, callback:function(num) { callbackA(num); },});var newdraw2 =new turntableDraw('.drawBtn2',{ share:12, speed:"3s", velocityCurve:"ease", weeks:6, callback:function(num) { callbackB(num); },});$(".drawBtn").click(function(event) { //ajax newdraw.goto(parseInt(Math.random()*8)+1);});$(".drawBtn2").click(function(event) { //ajax newdraw2.goto(parseInt(Math.random()*12)+1);});

只要指针转jQuery手机端转盘抽奖插件_JS抽奖特效源码下载

在线演示        积分下载        6毛下载        砍两刀下载       

文件目录······
暂无数据
 猜你喜欢 更多»
 工具推荐 更多»