!= null) {
return;
}
results.style.display = 'none';
time = 0;
MaxNum = parseInt(Math.random() * 9) + fixNum;
randomNum = parseInt(Math.random() * 5 + 3);
startTime = setInterval(move,200);
playnum = playnum - 1;
if(playnum <= 0) {
$('.playnum').html("机会用完啦,<a href='/home/zlw.html?'>去做任务</a>赚取5次抽奖");
}
else {
$('.playnum').html("您有"+playnum+"次抽奖机会,点击立刻抽奖!~");
}
}
}
}
function move() {
time++;
tdAry[tdList[tdId]].className = "";
tdId++;
tdId = tdId > 7 ? 0 : tdId;
tdAry[tdList[tdId]].className = "active";
if (time == randomNum) {
clearInterval(startTime);
startTime = setInterval(move,20);
}
if (time + randomNum >= MaxNum) {
clearInterval(startTime);
startTime = setInterval(move,200);
}
if (time >= MaxNum) {
clearInterval(startTime);
startTime = null;
switch(tdList[tdId]) {
case 0:
jb(5, 11)
break;
case 1:
jb(15, 2)
break;
case 2:
jb(9, 13)
break;
case 4:
jb(8, 5)
break;
case 7:
jb(3, 12)
break;
case 6:
jb(2, 3)
break;
case 5:
jb(4, 7)
break;
case 3:
jb(12, 4)
break;
function jb(act, id)
{
$(document).ready(function () {
$.ajax({
下页.上页.余下全文