Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21009

    1. Is there any possible way to have the home-page image-autorotation set to rotate through everything just ONCE, and then stop on the last image in the gallery?

    2. To further add to this question, I was wondering if there is any way to have the mini text block automatically slide in after the autorotation of images on the home page (from question 1 – if this is possible)?

    Thanks in advance for any help or suggestions!

    #110026

    Hi xdestiny579x,

    For #1, it is probably possible but I’ll need to tag some of the other support crew who are better with javascript for a testable solution.

    For #2, you would need to look into a freelance developer to write some custom javascript to take care of that.

    Regards,

    Devin

    #110027

    Thank you – I figured as much with #2, but I’m definitely interested if there is some way for #1 to work.

    #110028

    Open up flashlightjsavia_fullscreen_slider-not-minified.js and replace:

    autorotation: function()
    {
    var current = this,
    data = this.data( pluginNameSpace ),
    time = (parseInt(data.options.autorotationspeed) * 1000);

    data.interval = setTimeout(function()
    {
    //switch slides
    if(!data.skipAutorotate) methods.transition.apply( current, ['next'] );

    //call this function again
    if(data.interval != false) methods.autorotation.apply( current );
    },
    time);

    if(data.options.appendcontrolls) data.arrowControlls.play.addClass('ctrl_active').text('Pause');
    },

    with:

    autorotation: function()
    {
    var current = this,
    data = this.data( pluginNameSpace ),
    time = (parseInt(data.options.autorotationspeed) * 1000);

    data.currentSlideIndex = data.slides.index(data.currentSlide);

    data.interval = setTimeout(function()
    {
    //switch slides
    if(!data.skipAutorotate && (data.currentSlideIndex < data.slideCount) ) methods.transition.apply( current, ['next'] );
    if(data.currentSlideIndex + 1 < data.slideCount) methods.autorotationStop.apply(current);

    //call this function again
    if(data.interval != false) methods.autorotation.apply( current );
    },
    time);

    if(data.options.appendcontrolls) data.arrowControlls.play.addClass('ctrl_active').text('Pause');
    },

    Then save the file and rename avia_fullscreen_slider.js to avia_fullscreen_slider.js.bak and avia_fullscreen_slider-not-minified.js to avia_fullscreen_slider.js

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

The topic ‘Home Page Autorotation’ is closed to new replies.