I've got a really simply jquery plugin that I'm just trying to read the options from but can't figure out what I'm doing wrong. When I try to run this I get an "options is undefined js error."
Here is my code:
(function($) {
$.fn.extend({
headerSlideshow: function(){
var defaults = {
padding: 20,
mouseOverColor : '#000000',
mouseOutColor : '#ffffff'
}
var options = $.extend(defaults, options);
},
header: function() {
this.headerSlideshow(options);
setInterval( "this.headerSlideshow(options)", 1000 );
}
});
}) (jQuery);