Text Rollovers: Introduction - Doc JavaScript
Text Rollovers
If you're already using Internet Explorer 4.0, you've probably noticed CNET's special text rollovers. Just move the mouse over one of their menu links and it'll turn red. In this column we'll discuss such effects, and several other text rollovers that don't require any graphics at all. You'll need a fourth-generation browser to make the most out of this column, but you'll be able to learn the material even without one. So keep reading to find out:
- How to use
onMouseOver
andonMouseOut
with plain text. - How to change a link's color when the user points at it or removes the pointer from it.
- How to change a link's text when the user points at it or removes the pointer from it.
- How to generate these effects for an entire document.
- How to generate these effects for an entire site.
- How to provide workarounds for Netscape Navigator 4.0x.
Created: October 9, 1997
Revised: December 4, 1997
URL: https://www.webreference.com/js/column4/