Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8986269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:30:41+00:00 2026-06-15T21:30:41+00:00

I have a problem with a slideshow I’m working on, using the jQueryCycle script.

  • 0

I have a problem with a slideshow I’m working on, using the jQueryCycle script. The slideshow is made up five sliders: a large slide where the images move horizontally, and four small slides stacked on top of each other that slide vertically. Whenever the main slide transitions to the next slide, the vertical slides all transition and move in sync with each other, with the small bottom slide image matching the main slide.

My problem comes into play when I try to add a certain function to my vertical slides. When the user clicks on the top vertical slide, I want the slideshows to smoothly transition to the next slide three times, so the image the user clicked is now the bottom slide and main slide.

for (var i=0; i < 3; i++) {
setTimeout(function() {
    $('#slides').cycle('next');
    $('#slideh1').cycle('next');
    $('#slideh2').cycle('next');
    $('#slideh3').cycle('next');
    $('#slideh4').cycle('next');
}, 2000);
}

When I test this on the top vertical slide, it waits two seconds before skipping to the selected slide, only showing a single slide transition rather than three. I don’t know if there’s a flaw in my logic or if I’m not using the setTimeout function correctly, but any help would be greatly appreciated!

Full test code can be found here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:30:42+00:00Added an answer on June 15, 2026 at 9:30 pm

    I was going about this the wrong way. A slideshow cycle in jQuery Cycle doesn’t appear to be a function you can repeat unless you use the after callback.

    jQuery('#slides').cycle({
        fx:     transitionMain
        ,autostop: autoS
        ,speed: delayMain
        ,delay: -'0'
        ,timeout: timeO
       //,pause: '0'
        ,continuous: isContinuous
        ,easeIn: eas
        ,easeOut: eas
        ,speedIn: transitionSpeed
        ,speedOut: transitionSpeed
        ,synch: 'true'
        ,after: mainSlideNum
        ,startingSlide: mainStartSlide
        });
    

    For my main slideshow, I call the mainSlideNum function as my after callback.

        function mainSlideNum(curr,next,opts) {
        var totalSlides = opts.slideCount;
        if (opts.currSlide == 0) {
        cSlideMain = (totalSlides)
            } else {
            cSlideMain = opts.currSlide; }
        $('#slides').attr('curSlideNumber', cSlideMain);
    
        //If vertical slides are clicked, checks to see if the clicked slide matches the current slide. Continues to cycle until it matches.
        if (clickedSlide != cSlideMain && clickedSlide != null) {
            nextSlide();
            }   
        if (clickedSlide == cSlideMain) { //ends the slide cycling
            clickedSlide = null;
        initializeValues();
        changeSlideOptions();   
            }
        }
    

    The variable clickedSlide refers to the clicked slide number for the vertical scrolling slides, and cSlideMain contains the slide number of the currently displayed slide. The function continues to cycle to the next slide until the two numbers match.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made slideshow with jQuery Cycle, but i have a problem with the timers.
i have created a slideshow, using jquery which has fade effect, the problem with
I have implemented a slideshow using jquery cycle plugin : the problem with the
I have a simple slideshow script which rotates images at a given interval. It
I have problem with my query on C, I’m using the oci8 driver. This
I am using jQuery Tools Slideshow & Tabs for a project I am working
I have created a slideshow widget, using jQuery.UI widgets that works with window.setInterval. I
I have a pretty basic slideshow fading between images. On top of that slideshow
I have a slideshow, of sorts, which is triggered using jQuery and cycles through
I'm creating a slideshow using javascript that fades images. Awhile back, I discovered that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.