Support » Plugins and Hacks » [Resolved] Random Start Slide

[Resolved] Random Start Slide

  • Hey Josh,

    great plugin – I have been using it in multiple projects.

    Recently, I had to implement the possibility to use a randow startslide (I know this has been asked before), but I wanted to share my solution, maybe you want to add that option to the core.

    in slideshow.js:

    //var $totalSlides	= 6;
    var $totalSlides	= $j('.mslide').length;
    // Setup jQuery Cycle
    //... general Meteor Slides Code
    startingSlide: Math.floor(Math.random() * $totalSlides)

    Im making use of the startingSlide option, which is already included in the cycle plugin. It’s really a small, but useful addition.

    Again, thanks for this great plugin!



Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Random Start Slide’ is closed to new replies.