Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rollovereffect

Status
Not open for further replies.

anneoctaaf

Programmer
Joined
Dec 15, 2003
Messages
104
Location
NL
I have text as a hyperlink. now i want the text to have a differentcolor when the mouse rolls over.

It's very simple i think, but i'm not a javascripter...

If anyone can help me out with this script...THANX!
 
You don't need javascript for this. Use the CSS pseudoclass :hover.

Code:
<html>
<head>
<title>Link</title>
<style type="text/css">
<!--
a {
    color: blue;
  }
a:hover {
    color: green;
  }
-->
</style>
</head>
<body>
<a href="#">Mouse over me!</a>
</body>
</html>

--Chessbot

"So it goes."
Kurt Vonnegut, Slaughterhouse Five
 
Allright, just what i need...THANX!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top