js代码
<script language="javascript"> function si(){ var time = window.setInterval(function(){ a=$("#line").width(); b=(a/200*100).toFixed(0); $("#percent").html(b+"%"); $("#percent").css({"left":(a-32)+"px"}); if(b==100) { clearInterval(time); play.src = "pause.png"; } },70); } function processerbar(time){ $("#probar").css({"display":"block"}); $("#line").each(function(i,item){ var a=parseInt($(item).attr("w")); $(item).animate({ width: a+"%" },time); }); si(); }; var onOff = true; $("#play").click(function(){ if(onOff === true){ processerbar(2000); play.src = "play.png"; onOff= false; }else{ $("#line").stop(); play.src = "pause.png"; onOff = true; } }); </script>
售后客服微信:guomanqing1314
微信扫码加好友:
关注公众号:不定期分享免费源码、自媒体工具、壁纸等
其他咨询和服务:
邮箱:1206995177@qq.com
手机:18005151538