这是一款基础jQuery的手机号抽奖插件,可以指定抽奖结果,也可以随机抽取号码,非常简单,实用!
1.引入基础的css样式文件
<link rel="stylesheet" href="index.css"/>
2.引入jq和easing.js
<script type="text/javascript" src="js/jquery-1.7.2-min.js"></script> <script type="text/javascript" src="js/easing.js"></script>
3.按照固定的格式进行排版:
<div class="num_box"> <div class="num"></div> <div class="num"></div> <div class="num"></div> <div class="num"></div> <div class="num"></div> <div class="num"></div> <div class="num"></div> <div class="num"></div> <div class="num"></div> <div class="num"></div> <div class="num"></div> </div>
进行相应的jq设置即可!