jQuery growing number help -


O people, I do not know that there is a plugin for this

but what I want to do The code that appears in "Grow" or "Junk"

then it starts with

0000.00

then increases to a set price (i.e. 9 000.00)

then this 0000.00 , 0000.01, 0000.02, 0000.03 ... 8999.98,8999.99, 9000.00

Any thoughts?

I believe that you want this number to increase as it appears?

Here's a solution that does not require jQuery:

  var start = 0, max = 9000, step = .01, refreshRate = 50 // ms, Number = start, el = document .getElementById ('displayField'), growNumber = function () {number + = step; El.innerHTML = number; // You want to format it according to your choice if (number> = maximum) {clear timer (timer id); }}, TimerID = set interval (tree number, refresh); GrowNumber ();  

This will create an element with id = "displayfield", as it grows, displays values.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -