Solved

jquery fade background

Posted on 2010-11-28
4
603 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
This article discusses how to implement server side field validation and display customized error messages to the client.
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)

734 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