rotator.js

Creates a set of 'rotating' elements, which are cyclically displayed in an infinite fashion (1, 2, 3, 1, 2 ...).


Objects

Methods

Constants

CSS classes


OAT.Rotator(panelX, panelY, paramsObj, callback)

Creates the Rotator object. Its elements will have width of panelX and height of panelY. Callback will be executed every time rotation pauses. Argument paramsObj is an object of the following properties:

OAT.Rotator.addPanel(element)

Adds a new element to rotating set.

OAT.Rotator.start()

Starts the rotation process.

var r = new OAT.Rotator(200, 200, {type:OAT.Rotator.TYPE_RIGHT}, function(){});
r.addPanel("div1");
r.addPanel("div2");
r.addPanel("div3");
r.start();