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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:21:17+00:00 2026-06-07T11:21:17+00:00

I modified a pre-designed slideshow that I found here and I would like to

  • 0

I modified a pre-designed slideshow that I found here and I would like to edit it so that it autoplays without the user having to click the arrows. I’m not sure how to do this, however. Can you simulate clicks with jQuery? Is this the best way to do it?

  • 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-07T11:21:19+00:00Added an answer on June 7, 2026 at 11:21 am

    Here is the solution I came up with. It gets the current slide and advances every 3.5 seconds. This works specifically for 4 slides instead of the 5 slides that are shown in the tutorial. My script also accounts for reaching the final slide and looping back to the first one, as well as advancing from the most current slide if the user advances them on his/her own.

    Each slide looks like this…

    <input value="0" type="radio" id="button-1" name="controls" checked="checked"/>
    

    …with the checked = “checked” on the current slide. The value is 0, 1, 2, 3, …, n for each slide.

    <script type="text/javascript">
            var tmp = 0;
            $(document).ready(
                function() { 
                    tmp = parseInt($('input[name=controls]:checked').val());
                    var tid = setInterval(advance, 3500);
                }
            );
    
            function advance() {
                if(tmp == 3) {
                    $('input[name=controls]:eq(0)').attr('checked', 'checked');
                    tmp = 0;
                }
                else { 
                    $('input[name=controls]:eq(' + (tmp+1) + ')').attr('checked', 'checked'); 
                    tmp = parseInt($('input[name=controls]:checked').val());
                }
            }
    
            function abortTimer() { clearInterval(tid); }
        </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I modified this simple countdown timer form here: https://github.com/lunaryorn/snippets/blob/master/qt4/countdown.py as follows. Now I want
I'm just building a table to store hierarchical data using the Modified Pre-order Tree
I have a UITableViewController subclass that renders a list of pre-set categories and fetches
Has anyone come across an SVN pre-commit hook that works with the following logic?
I'm working on a pre-commit hook that uses YUI Compressor to minify any CSS
I have some C source files that need to be pre-processed so that I
I'd like to be able to invoke some pre-processing on files before Git tries
How do we remove a header (e.g. Last-Modified ) that has already been set
Good day pals! Currently I'm studying this database model design called Modified Pre-order Tree
I am trying (but failing miserably) to make a git pre-commit hook that checks

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.