A scrolling news ticker is a common feature on many websites, providing an eye-catching way to present headlines or updates to users.
In this recipe we will create a Visualforce page that displays a list of news items based on 10 recently closed opportunities. The page initially displays the first three opportunities and then scrolls through the remaining, removing the top item, moving the others up vertically, and appending the next item to the bottom of the list.
This recipe uses the jQuery (http://jquery.com/) JavaScript framework to scroll the list of stories. The JavaScript file is included from the Google Hosted Libraries content delivery network rather than being uploaded as a Salesforce static resource, as this makes it straightforward to move to a new version simply by changing the URL of the included file.
This recipe makes use of a wrapper class to encapsulate the stories.
Navigate to the Apex Classes setup page by clicking on Your Name | Setup...