In this age of RSS and Twitter feed mania, we are frequently called upon as developers to create elements that can simply incorporate a complexity of data. Scrolling has proven to be a great way to do that since more data than can be displayed at once is still readily available.
Get ready to scroll some text or news by having a lot of text or news: at least more than what would fit within the defined element size.
Please also note that some long blocks of text are represented by ellipses in this and other recipes. They are removed here for display purposes, but necessary in the full example as shown in the code snippets attached with the book.
It is perfectly fine to Ajax-feed content into a DIV and then enact this scrolling effect upon it. Be sure that the Ajax has completed before calling the Fx.Scroll()
class, since the instantiation will grab the height of the element, so changing it afterward could have undesirable effects...