471,872 Members | 1,127 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,872 software developers and data experts.

text colour change on image hover

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
1 2035
16,027 Expert Mod 8TB
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 elem.style.color 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.

Similar topics

2 posts views Thread by Bettina | last post: by
2 posts views Thread by Pamel | last post: by
3 posts views Thread by Yeah | last post: by
3 posts views Thread by JOSEPHINE ALVAREZ | last post: by
10 posts views Thread by Pulzar | last post: by
2 posts views Thread by george.leithead | last post: by
8 posts views Thread by Dave Rado | last post: by
reply views Thread by NeoPa | last post: by
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.