RE: Changing Text Color with a mouse over without a link

by "Kali Woodbridge" <kaliajer(at)mail.com>

 Date:  Thu, 30 Nov 2000 22:58:42 -0500
 To:  "'Barnes,
David (D.)'" <dbarne20(at)visteon.com>,
<hwg-techniques(at)hwg.org>,
<hwg-basics(at)hwg.org>
 In-Reply-To:  mailwatch
  todo: View Thread, Original
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