Ticker Tape

Read more and download "Ticker Tape"

This component vertically scrolls a number of items within a container. Each page of items is pulled from a server which supplies JSON data.
The parameters are: the data url, a css class for the container, and the time to pause between scrolling each item. Very simple! I had to do this for a project recently and couldn't find any useful "modern" implementations, so I rolled my own. The core js file is 8.5k without any compression at all, or dependencies.




Visit PhpDaddy.com


Play with this script by changing the html bellow. Submit your changes by clicking on this bar. Refresh the page to reset changes.
Play with this script by changing the html above. Submit your changes by clicking on this bar. Refresh the page to reset changes.

Comment on this example

Name
Url
Comment
Captcha
 

 

1
FT
2008-06-13 20:25:37
var urlWithParams = this.dataUrl + concatCharacter + "lastId=" + this.lastId; //random number in url = no cache urlWithParams=urlWithParams+"&rand="+Math.random();