bleen wrote on 5/16/2007 7:54 AM:
If the function below (which is called in a mouseover event) is run
too many times, too quickly it doesn't work (i.e. the html in question
is not changed)

I played with it a bit in FF2.  If you do this:

        
$("#popular_quicksearch_content").hide().html(content[tab]).fadeIn("slow");

then I found that rolling over it once very fast will hide the content, but not 
fade it back in.

If you do this:

        $("#popular_quicksearch_content").hide();
        $("#popular_quicksearch_content").html(content[tab]).fadeIn("slow");

then rolling over it fast works, but the fadeIn runs more than once (and maybe 
the hide runs more than once too).

In any event, it might be best to never hide it at all, but instead just do:

        $("#popular_quicksearch_content").html(content[tab]).fadeIn("slow");

That way, you content won't get stuck as hidden and visually, it's about the 
same.


- Bil


Reply via email to