By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
463,008 Members | 583 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 463,008 IT Pros & Developers. It's quick & easy.

text colour change on image hover

P: 5
Hi All,

Not sure wether this is a css issue or javascript but here goes.

I am trying to make some html <p> tag text highlight (change colour) when hovering over an image that is relevant to that text. Does anyone know how this could be done or wther there is some script to download and modify to do this?

Many thanks in advance for any help

Nov 3 '08 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
You could do this with CSS, but also with JavaScript. Since this is the JavaScript forum, I'll tell you that you'll need onmouseover to call a function to highlight the text. To change colour, set the property where elem is a reference to the P element in question. See what you can come up with :)
Nov 3 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.