By Date: <-- -->
By Thread: <-- -->

moofx - scriptaculous



I was wondering whether somebody could point me to some documentation on how I would convert a moofx class to scriptaculous.

 

Please see this very basic class:

 

fx.ScrollThumbs = Class.create();

fx.ScrollThumbs.prototype = Object.extend(new fx.Base(), {         

            initialize: function(el, options) {

                        this.el = $(el);

                        this.setOptions(options);

                        this.now = 0;

            },

            increase: function() {

                        if (fm.param['view'] == 3) {                       // scroll left

                                    this.el.scrollLeft = this.now;

                        } else if (fm.param['view'] == 4) { // scroll top

                                    this.el.scrollTop = this.now;

                        }

            },

            scroll: function(from,to) {            

                        this.clearTimer();

                        this.custom(from,to);

            }

});

 

 

How would I convert this to scriptaculous?

 

Thank you in advance for your input

 

 

 

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs (at) lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs