<div class="numberRun1"></div>2、js
<script type="text/javascript" src="js/digital_over.js" ></script>//引用//这是自定义函数(需要在页面中进行调用)<script>//数字滚动function digitalScroll(obj,n){var numRun = $(obj).numberAnimate({num:n, speed:2000, symbol:","});var nums = n;setInterval(function(){numRun.resetData(nums);},3000);var numWidth= $(obj).width();$(obj).find(".mt-number-animate").css("width",numWidth);$(obj).css("width","100%");$(obj).find(".mt-number-animate").css("margin","0 auto");}window.indexdigitalScroll=function(){digitalScroll($(".numberRun1"),1160518);}</script><!--这是在页面中调用的方法--><script>$(function(){indexdigitalScroll();});</script>3、图片案例
以上所述是小编给大家介绍的jQuery实现立体式数字滚动条增加效果,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!