整合营销服务商

电脑端+手机端+微信端=数据同步管理

免费咨询热线:

JavaScript实现的转盘抽奖html页面前端源码

家好,今天给大家介绍一款,JavaScript实现的转盘抽奖html页面前端源码 (图1)。送给大家哦,获取方式在本文末尾。

图1

点击中间的开始按钮,就可以转动转盘(图2)

图2

源码完整,需要的朋友可以下载学习(图3)

图3

本源码编码:10165,需要的朋友,点击下面的链接后,搜索10165,即可获取。

就爱UI - 分享UI设计的点点滴滴

注本头条号,专注做前端

转盘抽奖这个在我们平时的前端项目中用到还挺多,用html5+canvas的方式来做我认为是最好的,支持移动端,今天分享的这个就是基于 html5+canvas实现,并且我还用到过几次。

中奖概率,中奖提示,可抽奖次数,旋转角度等等,都可以配置,非常实用

//

奖页面

废话不多说,直接上源代码,直接运行就可以。

<!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数字随机滚动抽奖特效代码 - JS代码网</title>

<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>

<script type="text/javascript" src="js/script.js"></script>

</head>

<body>

<style type="text/css">

body{background-color:#fff;text-align:center;padding-top:50px;}

#Result{border:3px solid #40AA53;margin:0 auto;text-align:center;width:400px;padding:50px 0;background:#efe;}

#ResultNum{font-size:50pt;font-family:Verdana}

#Button{margin:50px 0 0 0;}

#Button input{font-size:40px;padding:0 50px;}

#btn{background-color:#40AA53;border:1px solid #40AA53;width:20%;height:45px;margin:0em auto;font-size:1em;border-radius:2.5px;-moz-border-radius:2.5px;-webkit-border-radius:2.5px;color:#FFF;}

</style>

<h1 style="color:#40AA53">抽奖结果</h1>

<div id="Result" style="color:#40AA53">

<span id="ResultNum">0</span>

</div>

<div id="Button">

<input type='button' id="btn" value='开始' onclick='beginRndNum(this)'/>

</div>

</body>

</html>

JS代码需要的请私我邮箱,我给你们发。。。

每天都有更新,喜欢的可以关注我。