【原创】jQuery制作“抖大师”锦鲤摇奖转盘桌号,座号随机抽奖。点击拉杆摇奖,按“遇见锦鲤”按钮,开出中奖结果。支持默认设置:最小桌号、最大桌号、最小座号、最大座号。
使用方法:
1、head引入css文件
<link rel="stylesheet" href="css/cp_public.css">
2、head引入js文件
<script src="js/jquery-1.10.2.js"></script>
<script src="js/easing.min.js"></script>
<script src="js/cp_mejs.js"></script>
3、body引入部分
<section>
<div class="machine">
<dl class="rotate_box clear">
<dd id="a_1">
<div id="a_1_num" class="num" style="color:#ff3e6a">1</div>
<div id="a_1_txt" class="txt" style="color:#46bcf6"><b>桌号</b></div>
</dd>
<dd id="a_2">
<div id="a_2_num" class="num" style="color:#e02ca2">1</div>
<div id="a_2_txt" class="txt" style="color:#11bf31"><b>座号</b></div>
</dd>
</dl>
<a class="poiner" href="">
<img src="images/poiner.png" alt="">
</a>
<a class="rotate_btn" href="javascript: void(0);">
<img src="images/rocker.png" alt="">
</a>
<div class="btn_box">
<a class="share_btn" href="javascript: void(0);">
<img src="images/share_btn.png" alt="">
</a>
</div>
</div>
</section>
<div class="mask">
<img src="images/alert_img.png" alt="">
</div>
<div class="cp_setting">
<a id="cp_setting" href="javascript: void(0);">设置</a>
</div>
<div id="cp_setting_body">
<div>最小桌号:<input type="text" id="zhuohao_zuixiao_text" value="1"></div>
<div>最大桌号:<input type="text" id="zhuohao_zuida_text" value="80"></div>
<div>最小座号:<input type="text" id="zuohao_zuixiao_text" value="1"></div>
<div>最大座号:<input type="text" id="zuohao_zuida_text" value="8"></div>
<div><input type="submit" id="cp_save" value="确定"></div>
</div>