jQuery自定义数值抽奖活动代码自定义数值抽奖活动代码
本文实例为大家分享了jquery输入数字随机抽奖特效代码,供大家参考,具体内容如下
代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>jQuery自定义数值抽奖活动代码 - 何问起</title><base target="_blank" />
<script type="text/javascript" src="http://down.hovertree.com/jquery/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="http://hovertree.com/texiao/jquery/76/pjs_01.js"></script>
<style type="text/css">
#bigDiv {
width: 1080px;
margin: 0px auto; /*div网页居中*/
background-color: #494949;
color: #FFFFFF;
}
h1 {
text-align: center; /*文本居中*/
padding-top: 10px;
}
#first, #second, #third {
width: 360px;
height: 360px;
font-size: 150px;
line-height: 360px;
text-align: center;
float: left; /*让三个盒子左浮动*/
}
#first {
background-color: #009BFF;
opacity: 0.9;
}
#second {
background-color: #007CCC;
}
#third {
background-color: #005388;
}
input {
font-size: 30px;
font-weight: 900;
}
#start {
margin-left: 40%;
margin-right: 5%;
}a{color:blue;}
</style>
</head>
<body>
<div id="bigDiv">
<h1>玩家幸运抽奖活动</h1>
<div id="first"></div>
<div id="second"></div>
<div id="third"></div>
<input type="button" value="开始" id="start">
<input type="button" value="停止" id="stop" disabled="disabled">
评论0