prototype news ticker
February 7th, 2007
Update:
New version released, look hereThis is a prototype-reliant version of the Mochikit-reliant newsticker found at http://lifeofweb.com/code/javascript-rss-news-ticker/
usage is exactly the same, except you need prototype.js rather than anything from Mochikit; replace the url and element arguments within the start_rss_ticker() function, and you’re away.
There were only a couple of changes needed, namely using Prototype’s Ajax.Request rather than the Mochikit equivalent, and copying in the scrapeText and getElement functions (using $() rather than getElement seemed to break in IE- I assume because of the Element.Extend parts…?)
Get the file: newsticker.js
Leave a Reply