Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-22-2009, 01:13 AM   PM User | #1
madmatter23
Regular Coder

 
Join Date: Jun 2007
Location: Maryland, USA
Posts: 165
Thanks: 12
Thanked 0 Times in 0 Posts
madmatter23 is an unknown quantity at this point
2 Simple? jQuery Animations

Hello,

I'm trying to accomplish a simple jQuery functions I can't seem to get it to work.

In the thumb_rollover() function, I'd simply like thumb.li 's border to turn blue on rollover, and then return to grey on mouseout. I can't seem to get this to work at all.

Can anyone please offer some help? I would be much appreciated. Thank you.
Code:
	  
function thumb_rollover(){
	$(".thumb_li").hover( function(){
		$(this).animate({ "borderColor" : "#1D69EF" }, 500);
	
	}, function(){
		$(this).animate({ "borderColor" : "#444444" }, 500);
		
	});
	
}
Example of Script

Last edited by madmatter23; 01-22-2009 at 01:27 AM..
madmatter23 is offline   Reply With Quote
Old 01-22-2009, 05:19 AM   PM User | #2
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
Has this problem been fixed? It seemed to be working fine already.
__________________
Learn how to javascript at 02geek

The more you learn, the more you'll realize there's much more to learn
Ray.ph
rangana is offline   Reply With Quote
Old 01-22-2009, 05:21 AM   PM User | #3
madmatter23
Regular Coder

 
Join Date: Jun 2007
Location: Maryland, USA
Posts: 165
Thanks: 12
Thanked 0 Times in 0 Posts
madmatter23 is an unknown quantity at this point
Haha, I must have fixed it the moment you saw it. Just figured it out a few minutes ago. The attribute borderColor cannot be used in jQuery. You have to use borderTopColor, borderLeftColor, etc.

Thanks though!
madmatter23 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 10:27 PM.


Advertisement
Log in to turn off these ads.