spacer
Yehuda Shiran January 4, 2000
Changing Links' Color and Text
Tips: January 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
OpenOffice 3.2 Lands Amid Critical Changes
Red Hat, IBM Firmly in KVM Virtualization Camp
Red Hat Talks Up Open Source Cloud Plans

When coding text rollovers, you can combine the effect of text changes with that of color changes. The following code segment demonstrates this idea:

<A HREF="http://www.microsoft.com/">
<FONT COLOR="#0000ff"
      onMouseOver="this.innerHTML = 'The Software Tycoon';
                   this.style.color = '#ff0000';"
      onMouseOut="this.innerHTML = 'Microsoft';
                  this.style.color = '#0000ff';">Microsoft</FONT></A>

Here is the result: Microsoft

Learn more about text rollovers in Column4, Text Rollovers.


People who read this tip also read these tips:

Look for similar tips by subject:


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

webref The latest from WebReference.com Browse >
Search Engine Optimization: Selecting and Embedding Keywords · Are Google's Language Translation Web Services Ready for Prime Time? · Installing and Using Meeplace, the Business Review CMS
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
IBM DB2 10 for z/OS: Justifying the Upgrade · Living La Vida Colo: Choosing the Right Colocation Facility · FTC Concerns over Social Media Privacy Linger