Plugin Template
by someprimetime
JavaScript
(function($) {
var methods = {
init: function(options) {
var settings = $.extend({
'speed' : '10000',
'tabs' : 'off'
}, options);
return this.each(function() {
var $container = $(this);
});
}
};
$.fn.slider = function(method) {
if (methods[method]) {
return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
} else if (typeof method === 'object' || !method) {
return methods.init.apply(this, arguments);
} else {
return false;
}
};
})(jQuery);