WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
[resolved] Random Start Slide (2 posts)

  1. choeft
    Member
    Posted 8 months ago #

    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:

    //static
    //var $totalSlides	= 6;
    //dynamically:
    var $totalSlides	= $j('.mslide').length;
    
    // Setup jQuery Cycle
    $j('.meteor-slides').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!

    Regards,
    Constantin

    http://wordpress.org/plugins/meteor-slides/

  2. Josh Leuze
    Member
    Plugin Author

    Posted 7 months ago #

    Thanks for sharing Constantin, I'll try that out!

Reply

You must log in to post.

About this Plugin

About this Topic