Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #14479

    Hi,

    How do I get the homepage slideshow to start automatically but stop when it gets to the last slide?

    Thanks

    Mark :)

    #83622

    I’m not familiar with the aviapoly2 slider code and the following solution may not work but try following – replace:

    if(target === slider.count){ target = 0; }

    with:

    if(target === slider.count){
    target = 0;
    methods.pause_slider(slider);
    }

    #83623

    Thanks!

    I’m just using the default slider – would you know which file I should change?

    :)

    #83624

    I think it’s the includes/helper-slideshow.php file, but I’m really not sure what I need to change?

    Thanks for any help!

    Mark :)

    #83625

    Hi!

    Oops..I’m sorry – I forgotto mention which file you need to edit :)

    The code is located in choicesjsaviapoly2.js

    Best regards,

    Peter

    #83626

    Thanks! :)

    Is that the right file even if I’m just using default fader slier and not the aviapoly slider settings?

    Rgds

    Mark

    #83627

    OK – tried it and it works regardless of which slider you’re using!

    Just one thing, the code you provided stops the slider once it goes around and gets to the first slide again. I n order to stop it on the last slide I had to change -

    Code:
    if(target === slider.count){
    target = 0;
    methods.pause_slider(slider);
    }

    to

    Code:
    if(target === slider.count){
    target = slider.count – 1;
    methods.pause_slider(slider);
    }

    Thanks!

    Rgds

    Mark

    #83628

    Hey!

    Glad that it worked :)

    Yes, the aviapoly2 is used for all slideshows – regardless of the effect, etc.

    Regards,

    Peter

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Pausing slideshow?’ is closed to new replies.