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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:46:08+00:00 2026-05-15T08:46:08+00:00

I have six menu options in my webapp, and when the user hovers over

  • 0

I have six menu options in my webapp, and when the user hovers over a link (ul>li>a) I switch an image to show a context relevant photo, and I fade the image in and out. However, I noticed that when a user moved their mouse quickly between links, the queue didn’t process properly and the user would often be hovering over a link and have an old image displayed from the previous hover. After a bit of reading, it appeared the right thing to do was to use the stop() method, but when I try and implement it, ie6 reports a stack overflow.

Here’s my old code (which has the old image problem):

if(webImage != 'img/template/slide_web.png') {
                        $('#slide img').fadeOut(function() {
                            $(this).load(function() {$(this).fadeIn(); });
                            $(this).attr('src','img/template/slide_web.png');
                        });

And here’s my new code (which resolves the old problem, but causes ie6 to stack overflow on the first line):

if(webImage != 'img/template/slide_web.png') {
                        $('#slide img').stop(true, true).fadeOut(function() {
                            $(this).load(function() {$(this).stop(true, true).fadeIn(); });
                            $(this).attr('src','img/template/slide_web.png');
                        });

Am I implementing the stop() method incorrectly? Or is there another way to avoid the jQuery fade queue from losing it’s place?

  • 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-15T08:46:08+00:00Added an answer on May 15, 2026 at 8:46 am

    The problem is this line:

    $(this).load(function() {$(this).stop(true, true).fadeIn(); });
    

    You’re binding a new .load() handler (albeit the same function) each time you’re fading out, so you need to either bind it once, outside of this scope, or .unbind() it, like this:

    $(this).unbind('load').load(function() {$(this).stop(true, true).fadeIn(); });
    

    Without that, it’s trying to run those load handlers all at once, something it can’t handle, effectively, it’s executing .stop(true, true).fadeIn() many times in a row.

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

Sidebar

Related Questions

I have the image like this: I want to split it into six squares,
(I have six image view and I want to animate the image randomly for
I have six source files and I would like to link them using the
I have six string variables say str11, str12, str13, str21, str21 and str23. I
I have six wcf services that I'm hosting in a windows service. Everything works
How can I use displayObjects as animation frames? I have six symbols in my
I have a page with six ifrmaes inside it. Each frame has individual id,
I have a pseudorandom number generator (PRNG) with nice properties which uses six UInt32
I have been developing with Java for several years and last six months I
Suppose I have a string like this: one two three four five six seven

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.