Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other AnythingSlider – How do I get it to play my 4 slides, then stop on the first one again

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32306
    StellaBob
    Member

    I’ve been searching through the forum for this one…it’s probably here, but I haven’t found it. I’m using a template that came with the AnythingSlider (very cool!) But, the client want’s it to run through the 4 slides, then stop on the first one. I found the ‘stopAtEnd:true’ option, but that doesn’t seem to work…although I could be applying it wrong. Can anyone help. Please know…I’m not a JavaScrlipt person, so I may not know where to apply any code you recommend. Please help. Thanks.

    #162712
    emidesigns
    Participant

    Hey Mottie, cheers for this awesome slider.

    You answered to my question on stackoverflow, but I’m just not sure where to reference the above code.

    This is what I have:

        `<script>
            // DOM Ready
            $(function(){
                $('#slider')
                    .anythingSlider({
                        resizeContents      : true,
                        addWmodeToObject    : 'opaque',
                        navigationFormatter : function(index, panel){ // Format navigation labels with text
                            return ['1', '2', '3', '4'][index - 1];
                        }
                    })
                    // Initialize video extension
                    // see https://developers.google.com/youtube/player_parameters?hl=en#Parameters for a list of parameters
                    .anythingSliderVideo({
                        // video id prefix; suffix from $.fn.anythingSliderVideo.videoIndex
                        videoId : 'asvideo',
                        // auto load YouTube api script
                        youtubeAutoLoad : true,
                        // see: https://developers.google.com/youtube/player_parameters#Parameters
                        youtubeParams: {
                            modestbranding : 1,
                            iv_load_policy : 3,
                            fs : 1
                        }
                    });
            });
    
    
    
        </script>`
    

    Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Other’ is closed to new topics and replies.