Quantcast
Channel: Papermashup » jQuery
Viewing all articles
Browse latest Browse all 10

jQuery dynamic number ticker

$
0
0
This is a fascinating little script that helps you display a dynamic JSON feed of numbers that automatically updates on the page by animating up or down to the current number. A great addition as part of a realtime analytical dashboard. The Code There are three functions in total. The first one ‘format_number’ which works the same as number_format(); in PHP adding the decimal places. the ‘magic_number’ function then takes the current number and the new number and animates between them. Finally we have the ‘update’ function which retrieves the new data set of numbers (randomly generated in PHP for […]

Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images