Underline on mouse rollover

Underline on mouse rollover

There are two ways of achieving this functionality

1. Javascript
2. CSS

Javascript:
By using “onmouseover” and “onmouseout” events which calls two user defined functions “blockStyle(‘param’)” and “displayStyle(‘param’)”,where param is a unique id for that hyperlink when the event occurs.
Eg. click here

CSS:
By using hover.
Write this source code in the css file.
a:hover
{
text-decoration:underline;
color: blue;
}
This above code will affect all the hyperlinks(anchor tag) in the same webpage.

Tags: ,

Leave a Reply

Recent Comments

  • registry fix programs: “Worked perfectly on my Windows VISTA & WINDOWS 7 PC. Fixed all the problems in a...
  • Host Gator deals: Good website. Added to Myspace!
  • Brittani Zufall: Thanks. I’m constantly interested in items and information on web site seo. You don’t...
  • computer technology information: Thanks I found just the info I already searched everywhere and just couldn’t...
  • TERESA HUTCHINSON: I have been looking around www.adiipl.com and really am impressed by the amazing content here. I...