HighDots Forums  

Can stop() be used without animation?

jQuery jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.


Discuss Can stop() be used without animation? in the jQuery forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Eclectic Mix
 
Posts: n/a

Default Can stop() be used without animation? - 11-05-2009 , 09:29 AM






I know that stop() works well when using animation, such as when one
passes their mouse over a series of animations to prevent the
animation from continuing. However, I in my code I am using hide()
and fadeIn() to do the work:

$('li').hover(
function() {
$(this).find('div.SectionTitle').hide();
$(this).find('div.Explanation').fadeIn(150);
},
function() {
$(this).find('div.Explanation').hide();
$(this).find('div.SectionTitle').fadeIn(150);
}
)

I have not been able to get stop() to work with these methods. Does
stop() only work with animation? If so then is there an equivalent
function that would work for me? It's not too big of a deal since the
chances are that one will not be moving too quickly over my list
items, but it would be nice if there was a way to cope with this.

Cheers -

george

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.