Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
jquery + interface: animation on hover occurs twice
Old 07-03-2009, 09:36 AM jquery + interface: animation on hover occurs twice
Skilled Talker

Posts: 83
Trades: 0
Hello,

I am using jquery + interface to change the background color (with a fade) of a table row when i hover over that row. The problem is that it sometimes fades out (the mouseout function???) without my mouse leaving the row, causing some irritating flickering.

Here's how i do it:
HTML Code:
<tr onMouseOver="$(this).animate({backgroundColor: '#f6d71e'},200);" onMouseOut="$(this).animate({backgroundColor: '#ffffff'},200);">
Any ideas why this happens and how i can prevent this?

thanks!

Matt

Last edited by killerwhale65; 07-03-2009 at 09:37 AM..
killerwhale65 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-10-2009, 12:40 PM Re: jquery + interface: animation on hover occurs twice
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
For one thing, the way you are activating those functions is cheesy and outdated. there is no reason to use inline events like that, especially when jQuery has such an advanced events module.

Study up on jQuery a bit, utilize some "normal" events, and then come back and address the issue again if it is still happening.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to jquery + interface: animation on hover occurs twice
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09707 seconds with 12 queries