Try this:

var ItemScroller = Class.create({
  initialize: function(el,options) {
  // quit if no main element passed in
  if (!$(el)) return;
  this.options = Object.extend({
    containerSelector: 'ul',
    itemSelector: 'li',
    viewPortSelector: '.wrap',
    scrollerSelector: '.item_scroller',
    nextSelector: '.next',
    prevSelector: '.prev',
    itemsPerScroll: 5,
    wrapEnds: false,
    mode: 'vertical'}, options || {});
  }
});

new ItemScroller('foo');
new ItemScroller('bar', {itemsPerScroll:25});

-justin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to