PDA

View Full Version : on mouse over underline


tcollick
09-16-2002, 08:58 AM
Hi...can anyone please tell me a javascript for links
on mouse over to underline the link?
Ive already got the javascript to cancel the underline on links
but now want the underline to appear on mouse over to
highlight the link.

thanks, tcollick

umm
09-16-2002, 09:24 AM
You could use CSS instead:

<html>
<head>
<title>Example</title>
<style type="text/css">
a:link{
text-decoration: none;
}
a:visited{
text-decoration:none;
}
a:hover{
text-decoration: underline;
}
</style>
</head>
<body>
<p>
<a href="#">Link</a>
</p>
</body>
</html>