Add jQuery three-dimensional digital scroll bars and jquery digital scroll bars
1. html Structure
<Div class = "numberRun1"> </div>
2. js
<Script type = "text/javascript" src = "js/digital_over.js"> </script> // reference // This is a custom function (which must be called on the page) <script> // numeric rolling 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 (); values (obj).find('.mt-number-animate').css ('width', numWidth); values (obj).css ('width', '20140901'); $ (obj ). fi Nd('.mt-number-animate'hangzhou.css ('margin ', '0 auto');} window. indexdigitalScroll = function () {digitalScroll ($ ('. numberrun1'), 1160518) ;}</script> <! -- This is the method called on the page --> <script >$ (function () {indexdigitalScroll () ;}); </script>
3. Image Cases