基本信息
源码名称:微信转盘源码下载
源码大小:0.07M
文件格式:.rar
开发语言:Java
更新时间:2014-03-17
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="微信转盘、有奖转盘" />
<meta name="description" content="医学论坛网" />
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'/>
<meta name=”format-detection” content=”telephone=no” /><!--禁用iphone自动将数字串转化为电话-->
<meta http-equiv="X-UA-Compatible" content="IE=8">
<title>幸运大转盘-jQuery PHP实现的抽奖程序</title>
<link rel="stylesheet" type="text/css" href="../css/main.css" />
<style type="text/css">
.demo{width:100%; position:relative}
#disk{width:70%; height:auto;margin:0px auto;display: block;}
.start{width:30%; height:auto; display:block;position:absolute;top:8%; margin-left:35.5%;}
</style>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.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").click(function(){
lottery();
});
});
function lottery(){
$.ajax({
type: 'POST',
url: 'json.php',
dataType: 'json',
cache: false,
error: function(){
alert('出错了!');
return false;
},
success:function(json){
$("#startbtn").unbind('click').css("cursor","default");
var a = json.angle; //角度
var p = json.prize; //奖项
$("#startbtn").rotate({
duration:3000, //转动时间
angle: 0,
animateTo:1800 a, //转动角度
easing: $.easing.easeOutSine,
callback: function(){
var con = confirm('恭喜你,中得' p '\n还要再来一次吗?');
if(con){
lottery();
}else{
return false;
}
}
});
}
});
}
</script>
</head>
<body>
<div class="demo">
<img id="disk" src="disk.jpg" />
<img src="start.png" id="startbtn" class="start">
</div>
</body>
</html>