| hwg-basics archives | Nov 2000 | new search | results | previous | next |
RE: Changing Text Color with a mouse over without a linkby "Kali Woodbridge" <kaliajer(at)mail.com> |
|
Good Evening David--
<snip>
change the color of regular (not
linked text) in response to a mouse over.
</snip>
Using CSS it is easy if it is a link. For example:
<.STYLE type="text/css">
<!-- engage cloaking device for older browsers
A.internal {text-decoration:none}
A:link {text-decoration:underline}
A:visited {text-decoration:none}
A:hover {background:cyan; color:red}
disengage cloaking device for older browsers -->
<./STYLE>
If it is NOT a link, JavaScript is called for and there are several
color changes script on the HTML Goodies site (www.htmlgoodies.com).
The ones I saw covered background colors though, not text.
You could cheat and pretend the text is a link using a null href (
href="#" ) for your mouseover code. Validators get upset, but it
works.
Good luck!
kali
kaliajer(at)mail.com
=================
The learning curve is now a spin cycle
--Paul Bicknell
HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA