js代码
<script src="js/jquery-1.10.2.js"></script> <script type="text/javascript"> $(".main3-btn").click(function () { if(!flag){ flag=true; reset(); letGo(); setTimeout(function () { flag=false; if(index==2){ $(".fix,.pop-form").show(); }else{ $(".fix,.pop").show(); //$(".pop-text span").text(""+String(4-TextNum1)+(8-TextNum2)) } },2000); index++; } }); var flag=false; var index=0; var TextNum2 function letGo(){ TextNum2=parseInt(Math.random()*7) var num2=[-750,-820,-888,-274,-341,-408,-477,-545][TextNum2]; $(".num-con2").animate({"top":-750},1000,"linear", function () { $(this).css("top",0).animate({"top":num2},1800,"linear"); }); } function reset(){ $(".num-con2").css({"top":-274}); } </script>
在线预览
资源均来自第三方,谨慎下载,前往第三方网站下载