Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12160

    Hello,

    I have searched the forum for a way to stop the homepage slider on the last slide and have found some simple solutions that only require modifying one slide of code in the appropriate JS file. However, the JS file that is being used in my site (http://commpart20120124.commpartners.com/) is not structured like the ones that are used for the simple solutions. The avia_fade_slider.js file is being used for the homepage slider and I would like to stop the loop after one time through the slide animations.

    Thanks,

    Tim

    #74537

    Hey!

    Open up aviaslider-dev.js and replace:

    if(currentSlideNumber == slideCount) currentSlideNumber = 0;

    slideWrapper.methods.switchSlide();

    with:

    if(currentSlideNumber < slideCount){
    slideWrapper.methods.switchSlide():
    }

    Then delete aviaslider.js and rename aviaslider-dev.js to aviaslider.js.

    Regards,

    Peter

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

The topic ‘Stop Hompage Slider’ is closed to new replies.