BTW, here is the working code: //Simple screen wizard plugin ;(function($) { $.fn.screenWizard = function (options) {
var self = this; var defaultOptions = { size : "100", duration : 1000, defaultLeft : 0 }; var settings = $.extend(defaultOptions, options); this.advance = function (){ var current = parseInt($(this).css("left")); $(self).animate({left: (current - settings.size) + "px"}, settings.duration); }; this.back = function(){ var current = parseInt($(this).css("left")); $(self).animate({left: (current + settings.size) + "px"}, settings.duration); }; this.reset = function(){ $(self).animate({left: settings.defaultLeft }, settings.duration); }; return this.each(function() { }); }; })(jQuery); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---