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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:23:54+00:00 2026-05-13T19:23:54+00:00

I have a jQuery timer going and it seems to mess up after 2

  • 0

I have a jQuery timer going and it seems to mess up after 2 cycles: treethink.treethink.net/backup

Right now, on different timers it will retract the news ticker and change which div is showing then pop it out again. After a couple cycles, which you can see in the link above, some stay longer and then overlap and it becomes a mess. I’m not sure why this is happening…

Here is my code:

/* Retracting Ticker */

    /* Initially hide all news items */

    $('#ticker1').hide();
    $('#ticker2').hide();
    $('#ticker3').hide();

    $("#ticker1").oneTime(1000,function(i) { /* Show 1 once on first pull out */

        $('#ticker1').show();

    });

    $("#ticker1").everyTime(64500,function(i) { /* Hide 3 and show 1 everytime timer gets to certain point */

        $('#ticker1').show();

    });

    $("#ticker1").oneTime(21500,function(i) { /* Hide 1 and show 2 once after first pull out */

        $('#ticker1').hide();
        $('#ticker2').show();

    });

    $("#ticker1").everyTime(86000,function(i) { /* Hide 1 and show 2 everytime timer gets to certain point */

        $('#ticker1').hide();
        $('#ticker2').show();

    });


    $("#ticker2").oneTime(43000,function(i) { /* Hide 2 and show 3 once after second pull out */

        $('#ticker2').hide();
        $('#ticker3').show();

    });

    $("#ticker2").everyTime(107500,function(i) { /* Hide 2 and show 3 everytime timer gets to certain point */

        $('#ticker2').hide();
        $('#ticker3').show();

    });

    $("#ticker3").oneTime(64000,function(i) { /* Hide 2 and show 3 once after second pull out */

        $('#ticker3').hide();

    });

    $("#ticker3").everyTime(129000,function(i) { /* Hide 2 and show 3 everytime timer gets to certain point */

        $('#ticker3').hide();

    });

    $("#ticker").oneTime(2000,function(i) { /* Do the first pull out once */

        $("#ticker").animate({right: "0"}, {duration: 800 });
    });

    $("#ticker").oneTime(20000,function(i) { /* Do the first retract once */

        $("#ticker").animate({right: "-450"}, {duration: 800});

    });

    $("#ticker").everyTime(21500,function(i) { /* Everytime timer gets to certain point */

        $("#ticker").animate({right: "0"}, {duration: 800}); /* Pull out right away */

        $("#ticker").oneTime(20000,function(i) { /* Retract once */

            $("#ticker").animate({right: "-450"}, {duration: 800});

        });

    });

Thanks,

Wade

  • 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-13T19:23:54+00:00Added an answer on May 13, 2026 at 7:23 pm

    Let’s ignore all the oneTimes since they’re not going to mess you up.

    $("#ticker1").everyTime(64500,function(i) {
        $('#ticker1').show();
    });
    
    $("#ticker1").everyTime(86000,function(i) { 
        $('#ticker1').hide();
        $('#ticker2').show();
    });
    
    $("#ticker2").everyTime(107500,function(i) {
        $('#ticker2').hide();
        $('#ticker3').show();
    });
    
    $("#ticker3").everyTime(129000,function(i) { 
        $('#ticker3').hide();
    });
    
    $("#ticker").everyTime(21500,function(i) { 
        $("#ticker").animate({right: "0"}, {duration: 800});
        $("#ticker").oneTime(20000,function(i) { 
            $("#ticker").animate({right: "-450"}, {duration: 800});
        });
    });
    

    You have 4 objects: ticker, the container, and 3 messages.

    The container’s behavior is this (approximately, and not counting the first pull-out): Every 21.5 seconds, hide for 1.5 seconds and then slide back out. Fine, this isn’t the source of the problem, the 3 message timers are the problem.

    This is the message behavior in intervals:

    ticker    show (s)   hide (s)
    1         64.5       86
    2         86         107.5
    3         107.5      129
    

    Edit I had my numbers wrong for the first ticker interval time, but I still think the idea is the same. Eventually, the times overlap.

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

Sidebar

Related Questions

I have a form in jQuery where I update all the images via a
I have a list of 3 radio buttons with the 1st radio that's selected
So I know there have been a number of similar posts, but I think
I am using jQuery Superfish menu on ie6 and from what I can see
I have a MySQL Database of more or less 100 teachers, their names, and
Hey folks, I have to apologize for my inexperience here, I've been working on
First of all I apologize, I am posting tons of questions will silly problems.
The dreaded IE strike again. :( I've been developing an image selection and upload
As a programmer my first instinct is to start coding, but then again chapter
I FORMULATED MY SELF VERY BADLY! I will start over :) I appreciate your

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.