Frage

I have these previous/next a elements that tie in with the functions of jQuery Cycle, however I don't want to show the buttons if the plugin is not initiated (i.e. too few slides). I've looked through the Options page (http://jquery.malsup.com/cycle/options.html) but I can't seem to find a reference to this.

$('#content ul').cycle({ 
  fx: 'scrollHorz',
  speed: 750,
  prev: '#previous',
  next: '#next',
  timeout: 4000
    "onInit.function() / conditional statement" {
      $('#previous').fadeIn();
      $('#next').fadeIn();
    });
});
War es hilfreich?
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top