jquery - Make custom/call skitter slideshow navigation -
for of worked skitter slideshow, it's great plugin want make custom next/prev buttons , place them outside of .box_skitter container , call skitter navigation function.
i tried creating following:
// custom navigation enable_custom_navigation: true, if (self.settings.enable_custom_navigation) { self.enablecustomnavigation(); } enablecustomnavigation: function() { var self = this; $('#custom_next, #prev_button').click(function () { // next if (this.id == 'custom_next') { self.box_skitter.find('.next_button').trigger('click'); } // prev else if (this.id == 'custom_prev') { self.box_skitter.find('.prev_button').trigger('click'); } }); },
well, moment solution create next button , when clicked simulate click on predefined skitter .next_button, so:
$(document).on('click', '.next', function(event) { event.preventdefault(); $(".box_skitter .next_button").click(); });
Comments
Post a Comment