Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

jquery fade background

Posted on 2010-11-28
4
Medium Priority
?
622 Views
Last Modified: 2012-06-27
Here is a simple fading colour background: http://www.beaconhilldesign.co.nz/jquery/bg_colours-change/index.html
What I want to do is stop the text changing colour so that on mouse over only the background changes (and not the text).
Regards,
N
0
Comment
Question by:Neil_Bradley
  • 2
4 Comments
 
LVL 2

Expert Comment

by:wasim117
ID: 34229315
In main.js change the hover color #FFF to original color of the text #666.

this will solve the issue.

below code is changing the color of the link.

$(this)	.stop()
				.css({"color": $(this).attr("rel")})
				.animate({"color": hoverColour}, 350);

Open in new window

0
 
LVL 5

Author Comment

by:Neil_Bradley
ID: 34232810
I need to completely disable the function that changes the text colour. The finished design will use more than one colour text in my box so your solution would not work.
0
 
LVL 6

Accepted Solution

by:
ventaur earned 2000 total points
ID: 34233674
Change the references for "color" to "backgroundColor" in your calls to .css and .animate.
0
 
LVL 5

Author Closing Comment

by:Neil_Bradley
ID: 34234024
Thats got it.. Thanks for that.
N
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question