dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Client Scripting
Expertise: Beginner
Jul 5, 2000

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Changing Link Color with Mouseovers

Question:

How can I change the color of a link when the mouse is over the link? And how can I remove the line that underlines the links? I am using Internet Explorer 4+ and Netscape 4+.

Answer:

Actually, this may be done with CSS, not JavaScript, but I can give you the answer anyway. However, be forewarned that it doesn't work in Netscape versions prior to version 6.

Add the following code inside your tag:


"text-decoration:none" says to not display underlines on anchor tags, while "text-decoration: underline" says to display the underline when the user hovers over the link. In the same way, the text will change to red, because of the "color:red" style.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date