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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:11:08+00:00 2026-06-07T21:11:08+00:00

I’m playing with Giva Labs jQuery Marquee plugin . Example jsFiddle here . There

  • 0

I’m playing with Giva Labs jQuery Marquee plugin. Example jsFiddle here.

There are two toggling lines of text in the example: First line and Second row. When you start to continuously move mouse cursor over and out the light-blue box, the text goes crazy: the lines start to move over each other like randomly, out of order. The craziness is strongest when you change speed of mouse movements from slow to fast in a loop.

I googled for “jquery animate stop” and found the .stop() and .clearQueue() effects. I tried attaching these to the marquee effect like this:

$("#marquee").marquee().stop();

and this:

$("#marquee").marquee().clearQueue();

and also like this:

$("#marquee").marquee()
    .hover(function() {
        $(this).clearQueue();
    });

I also tried with the plugin’s build-in methods:

$("#marquee").marquee()
    .hover(function() {
        $(this).marquee("pause");
    })
    .mouseout(function() {
        $(this).marquee("resume");
    });

None of them worked.

How to get rid of this glitch?

  • 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-07T21:11:09+00:00Added an answer on June 7, 2026 at 9:11 pm

    UPDATE/SOLVED:

    Code: jsFiddle


    Solution summary:

    • added var timedout
    • set timedout inside scroll()
    • call clearTimeout(timedout) inside pause()

    The bug doesn’t occur when you put a very low pauseSpeed (like 2 for example), which leads me to believe the bug it happens because of the interaction between pause() and resume()

    Concretely, this bit of code in pause():

    if( $marquee.data("marquee.showing") != true ){
        // we must dequeue() the animation to ensure that it does indeed stop animation
        $lis.filter("." + options.cssShowing).dequeue().stop();
    }
    

    this bit of code in resume():

    if ($marquee.data("marquee.showing") != true) scroll($lis.filter("." + options.cssShowing), 1);
    

    and this bit of code in scroll():

    setTimeout(function() {
        // if paused, stop processing (we need to check to see if the pause state has changed)
        if (paused == true) return false;
    
        // scroll the message down
        $li.animate({
            top: (options.yScroll == "top" ? "+" : "-") + $marquee.innerHeight() + "px"
        }, options.showSpeed, options.fxEasingScroll);
        // finish showing this message
        finish($li);
    }, delay);​
    

    As far as I can see the problem occurs because dequeue().stop() [which makes sense] is immediate and and scroll(...) has some code that happens with a delay (pauseSpeed).

    So what happens is the following:

    1. the animation is cancelled in pause()
    2. then resume() calls scroll() which in turns sets a timeout function to occur in 2000 ms
    3. actually it creates one for every time you hover over and move out
    4. which is what ends up messing everything up… don’t ask me how, I’m pretty tired now

    To fix this I would suggest editing jquery.marquee.js code and actually calling clearTimeout() every time you stop the animation.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
i got an object with contents of html markup in it, for example: string
I have a reasonable size flat file database of text documents mostly saved in

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.