I´ve downloaded a jOdometer jQuery and uploaded it to my website.
I wonder how I can get the numbers to continue changing even if I reload the page. Right now the numbers resets to it´s start value every time i reload the page.
Thanks
Edit:
I´ll do this and maybe you can help me to paste the correct code:
code
$(function(){
$('.counter1').jOdometer({increment: 12.58,speed: 500, numbersImage: 'http://facebookmarket.se/wp-content/plugins/jodometer/images/jodometer-numbers.png', spaceNumbers: 5, offsetRight:10,heightNumber: 85,widthNumber: 38,counterStart: '0000000.00',counterEnd: false,widthDot: 25,easing: 'linear',});
});
</script>
You’ll need to set the
counterStartconfiguration option server-side:From the documentation:
Depending on your server-side language of choice, the actual implementation of this will vary. If you were serving these pages up with PHP, and pulling a start value from the database, you could place that in your output:
Where
$start_numberis the value retrieved from our database.