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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:29:01+00:00 2026-05-21T23:29:01+00:00

I have tabs on my page each containing unique content. I want to automatically

  • 0

I have tabs on my page each containing unique content. I want to automatically rotate the tabs and content without them being clicked upon. As soon as the page loads I want this function to begin using window.onload = function().

I have the following JavaScript array:

var HomeTabs = [1, 3, 5, 7, 9, 11]

I want to know how to show HomeTab 1 for 10 secs and then move to HomeTab 3 and then after 10 secs move to HomeTab 5 in that order, not random. when it gets to HomeTab 11 it then goes back to HomeTab 1 again.

I have a script to change the tab which is ChangeTab(1), where one is the number of the tab I want to show.

  • 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-05-21T23:29:01+00:00Added an answer on May 21, 2026 at 11:29 pm

    Use the setInterval method to call a function every ten seconds:

    window.onload = function(){
    
      var HomeTabs = [1, 3, 5, 7, 9, 11];
      var index = 0;
    
      function nextTab() {
        ChangeTab(HomeTabs[index]);
        index = (index + 1) % HomeTabs.length;
      }
    
      nextTab();
    
      window.setInterval(nextTab, 10000);
    
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several tabs in my application, and each tab loads a different sub-page
I have a jQueryUI Tabs control on a web page. Each tab contains one
I have a page with two tabs that I want to be able to
I have a page where there will be many tabs and i want to
I have an aspx page on which I have 2 static jquery tabs.Upon clicking
I have three tabs on page and one user control. I want to RenderPartial
I have a simple web page with 5 tabs. Each tab is a LinkButton
I have two tabs in my home page and each tab has one jquery
I have a tabs on a page: <div id=tabs> <ul> <li><a href=#tabs-1>tab1</a></li> <li><a href=#tabs-2>tab2</a></li>
I have a master page with tabs. The tabs are defined by the following

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.