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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:15:22+00:00 2026-05-23T18:15:22+00:00

My slideshow has gone through several iterations, but it has never shaken off this

  • 0

My slideshow has gone through several iterations, but it has never shaken off this issue. It will run for a while as expected, then suddenly begin switching slides without any delay. If it weren’t for the animation it’d probably run at light-speed…

HTML:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> 
        <meta name="Description" content="Calvary Chapel Chico is a non-denominational,Bible-believing church established to worship,glorify,and share the good news of our Lord and Savior,Jesus Christ." /> 
        <title>Calvary Chapel Chico</title>
        <!--<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold"/>-->
        <link rel="stylesheet" type="text/css" href="style.css"/>
    </head>
    <body>
        <div id="Top450">
            <div id="TitleBar">
                <div id="Logo"></div>
                <h1>Calvary Chapel Chico</h1>
                <a id="Login" href="">Login</a>
            </div>
            <div id="SlideShow">
                <div id="Banner">
                    <div id="SMedia">Insert Media Links Here</div>
                    <div id="SMinistries">Insert Ministry links Here</div>
                    <div id="SServiceTimes">Insert Service Times Here</br><div style="background:#fff;">TEST</div></div>
                    <div id="SWelcome">Welcome to</br><span id="WelcomeText">Calvary Chapel Chico Online</span></div>
                    <a id="S5" href="2.html">2</a>
                    <a id="S6" href="2.html">3</a>
                    <a id="S7" href="2.html">4</a>
                </div>
            </div>
            <div id="MenuBar">
                <div class="Pages">
                    <a id="Home" href="2.html" class="current">Home</a>
                    <a id="About" href="2.html">About</a>
                    <a id="Media" href="#" rel="1" class="SlidePage">Media</a>
                    <a id="Ministries" href="#" rel="2" class="SlidePage">Ministries</a>
                    <a id="ServiceTimes" href="#" rel="3" class="SlidePage">Service Times & Directions</a>
                </div>
                <div class="BannerButtons">
                    <a href="#" rel="4"></a>
                    <a href="#" rel="5"></a>
                    <a href="#" rel="6"></a>
                    <a href="#" rel="7"></a>
                </div>
            </div>
        </div>
        <div id="Body">
            <div id="Left300">
                <div id="LeftTopTabs" class="Tabs">
                    <div id="LeftTopTabBar" class="TabBar">
                        <a href="#LTT-1">News</a>
                        <a href="#LTT-2">Media</a>
                        <a href="#LTT-3">Calendar</a>
                    </div>
                    <div id="LeftTopPanes" class="Panes">
                        <div id="LTT-1">Lorem ipsum dolor sit amet</div>
                        <div id="LTT-2">Nunc in tempor sem.</div>
                        <div id="LTT-3">Sed diam nisl,</div>
                    </div>
                </div>
            </div>
            <div id="Right700">
                Lorem ipsum dolor sit amet 
            </div>
        </div>
        <div id="Bottom450">
        </div>
    </body>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    <script type="text/javascript" src="scripts.js"></script>
</html>

javascript:

$(
    function() {

//===================================================================================================================================
//Setup
//===================================================================================================================================

//Initialize variables
        var Pause
        var NextSlide
        var RepeatTimer
        var SlideshowTimer
        var $CurrentSlide

//Slideshow setup
        $(".BannerButtons a:first").addClass("current");//Force the first slide's button to be the "CurrentSlide"
        $(".BannerButtons").show();
        var SlideWidth=$("#SlideShow").width();
        $("#Banner").css({'width':[SlideWidth*[$("#Banner>*").size()]]});

//Tabs setup
        var $CurrentTab=$(".TabBar a:first").next();

//===================================================================================================================================
//Slideshow Functions
//===================================================================================================================================

//Move to the Next Slide
        NextSlide=function(){
            var image_reelPosition=[$CurrentSlide.attr("rel")-1]*SlideWidth;//Computes distance to the left edge of the slide in pixels
            $(".BannerButtons a,.SlidePage").removeClass("current");//Make the old "CurrentSlide" no longer the "CurrentSlide"
            $("#Banner").animate({left:-image_reelPosition},900);//Next slide animation
            $CurrentSlide.addClass("current");//Make the new "CurrentSlide" current
        };

//Repeat slide changes
        RepeatTimer=function(){
            $CurrentSlide=$('.BannerButtons a.current').next();//Make the next "CurrentSlide" current
            if($CurrentSlide.length===0){$CurrentSlide=$('.BannerButtons a:first');};//If end of buttons is reached, go back to the beginning
            NextSlide();//Go to the next slide
            SlideshowTimer();
        };

//Repeat slide changes every 10 seconds
        SlideshowTimer=function(){
            clearTimeout(Pause);//Clear the timer
            Pause=setTimeout(RepeatTimer,10000);//Reset the timer
        };

//Hover
        $("#Banner").hover(
            function(){//Hover trigger
                clearTimeout(Pause);//Clear the timer
            },function(){//Cease to hover trigger
                Pause=setTimeout(RepeatTimer,2000);//Reset the timer
        });

//Click
        $(".BannerButtons a,.SlidePage").click(
            function(){
                $CurrentSlide=$(this);//Make the clicked object the "CurrentSlide"
                clearTimeout(Pause);//Clear the timer
                NextSlide();//Go to the clicked slide
                SlideshowTimer();//Reset the timer
                return false;//Keep the # out of the URL
            }
        );

//===================================================================================================================================
//Tab Functions
//===================================================================================================================================

//Move to the clicked tab
        ChangeTab=function(){
            $(".TabBar>a").removeClass("current");
            $CurrentTab.addClass("current");//Force the first slide's button to be the "CurrentTab"
            $CurrentPane=$($CurrentTab.attr("href"));
            $(".Panes>div").addClass("HiddenPane");
            $CurrentPane.removeClass("HiddenPane");
        };

//Click
        $(".TabBar>a").click(
            function(){
                $CurrentTab=$(this);//Make the clicked object the "CurrentSlide"
                ChangeTab();//Go to the clicked tab
                return false;//Keep the # out of the URL
            }
        );

//===================================================================================================================================

//Start Slide Show
        SlideshowTimer();

//Initialize Tabs
        ChangeTab();

//END
    }
);
  • 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-23T18:15:22+00:00Added an answer on May 23, 2026 at 6:15 pm

    Found it! Turns out it was a Browser/Javascript issue. I didn’t realize just how jQuery queues up all the animations by default.

    So, first off, page loaded, everything was fine. No timing issues. Then I go to another tab and leave my page open. That’s where this is stemming from. The browser somehow is locking jQuery out of animating the animations (not immediately though) with CSS changes when it wants to. But at the same time the Javascript timer does continue. All the while jQuery is building a queue of un-performed animations. When you reopen the tab the browser let’s jQuery have its way and begins running all the queued animation back-to-back. At which point the timer script is still running, but it only gets to add changes to the queue. And so it appears that the timer has failed.

    THE FIX

    I changed:

    $("#Banner").animate({left:-image_reelPosition},900);//Next slide animation
    

    to:

    $("#Banner").stop().animate({left:-image_reelPosition},900);//Next slide animation
    

    And that’s it, jQuery knows that building a queue is not desirable for some animations, so it includes a fix.

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

Sidebar

Related Questions

my slideshow is running through once and not restarting once it has run through.
Imagine a slideshow looks similar to this: http://malsup.com/jquery/cycle/div.html except it has only two images
I used the code from Why is this slideshow flickering? which peter has given
I built a slideshow/decision-making game in Flash but would like to try to redo
I have a slideshow that has 5 slides (each has an individual id) and
I have a view which is slideshow settings, and another view which has a
I have a homepage that has a section dedicated to a slideshow. It looks
Im creating a C# application that plays a powerpoint slideshow. After the slideshow has
I have written this event photography application that features a slideshow among other things.
I am using this code for a slideshow: <img src=<?php echo($array[0]); ?>/> <img src=<?php

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.