469,612 Members | 1,674 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,612 developers. It's quick & easy.

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 1981
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 devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.