Solved

jquery fade background

Posted on 2010-11-28
4
601 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 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jQuery Toggle & Anchor Links 5 55
jquery tab header text 1 27
Need help with jQuery elements filtering 2 16
Prevent certain words from being typed in a form 6 24
PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
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 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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

685 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