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 8806825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:13:20+00:00 2026-06-14T02:13:20+00:00

I am attempting to have 3 rotators on a page that run in a

  • 0

I am attempting to have 3 rotators on a page that run in a sequenced fashion but without synced transitions.

I wrote the below code, thinking I could set an interval function to run every second, keep a count of the times it is accessed, and modulus the result by ten to get my action points.

This however is not working as expected. #rotate2 starts as expected, then #rotate3, but then it goes back to #rotate2. Following things get really out of whack, slides disappear all together, etc.

I also tried upping the modulus to 30 and settings the action points at 9, 18, and 27. When I do that #rotate2 actual runs a second time before the console gets back to 9. It’s as if the timeout option is not being respected. Any suggestions?

JS Fiddle Link: http://jsfiddle.net/6yGET/2/

jQuery(function ($) {
    $(document).ready(function(){

        $('#rotate1, #rotate2, #rotate3').cycle({
            timeout: 0,
            speed: 'fast'
        });

        var count = 0;


        setInterval(
            function(){
                count++;

                console.log(count % 10);

                switch(count % 10){
                    case 3: // rotator 2 change
                            $('#rotate2').cycle('next');
                            break;
                    case 6: // rotator 3 change
                            $('#rotate3').cycle('next');
                            break;
                    case 9: // rotator 1 change
                            $('#rotate1').cycle('next');
                            break;
                }
            },
            1000 // interval every second
        );


    });
});
  • 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-14T02:13:21+00:00Added an answer on June 14, 2026 at 2:13 am

    Its not so much that its ignoring your timeout but it seems that calling “next” is starting it cycling to get the next one. Its very strange behaviour going on though. I suspect it may be that its just not designed for being manually paged like this.

    I have found a way to do what you want though. Which is to use the “delay” property and initialise each cycle separately with an appropriate delay on its first page.

        $('#rotate2').cycle({
            timeout: 10000,
            speed: 'fast',
            delay: 3000-10000
        });
        $('#rotate3').cycle({
            timeout: 10000,
            speed: 'fast',
            delay: 6000-10000
        });
        $('#rotate1').cycle({
            timeout: 10000,
            speed: 'fast',
            delay: 9000-10000
        });
    

    This fiddle demonstrates: http://jsfiddle.net/6yGET/4/

    The reason for the -10000 on each of the delays is because otherwise the first transition seems to happen after delay+timeout seconds.

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

Sidebar

Related Questions

I am attempting to have mechanize select a form from a page, but the
I am attempting to have a file upload page that allows for an arbitrary
I have a base Class akin to the code below. I'm attempting to overload
I have been attempting to have a object that I can use across multiple
I have been attempting to write a VBA Script that can parse out other
I have been attempting to debug my program, but it always seems to get
I am attempting to have a multiple model input page where I have 4
I am attempting to have a link show up in white, without an underline.
So I am attempting to have a custom field in my Solr schema that
I'm attempting to have a derived class (normal template) that has a variable of

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.