O'Reilly logo

Visualforce Development Cookbook by Keir Bowden

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The scrolling news ticker

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.

Getting ready

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required