Date based counter?

Hi,

How would I go onto make a counter that starts counting from one date and stops for example 30 days later? Let´s say I want it to increment with 100 every 5 seconds or so. Like, I don’t want it to start from zero every time someone visits the site.

Here’s a some code based on the information that you provided.

http://codepen.io/davidtsadler/pen/pgYmeO

2 Likes

Cool, looks like it’s exactly what I need=)

Hi again,

Im trying to get your counter to start at 28.000.000 but It aint working for me, you care to help me?=) I want it to tick from todays date and stop at todays date next year. Would love for it to tick from 28.000.000 to 175.000.000 during this time but thats just a math thingt regarding interval and increment I guess?=)

http://codepen.io/ReGGae/pen/PNwoOP?editors=0010

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.