Jquery.itemRotator.js is a project mainly written in JavaScript, it's free.
Item Rotator Plugin for jQuery 1.6+
A simple jQuery plugin to rotate items contained within another element.
The container and items are arbitrary, and can be heterogeneous - you can have a div with a's and p's, ul's with li's, etc.