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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I change say a named link's

Status
Not open for further replies.

blanius

Programmer
Mar 3, 2002
30
US
How can I change say a named link's background or make bold via a script call like a mouse over another area?
I'm sure that CSS is the way to go here but it's not clear on how to change a link's style on mouseover on another area like an imagemap.

Bret
 
<a href=&quot;whatever.html&quot; class=&quot;callcsshere&quot;>Link</a>

<style>

.callcsshere {text-decoration:none; font-family: arial, helvetica, sans serif; font-weight....well you get it.

Just make a class and assign the class to the particular link you want affected differently. DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Try this

[tt]<html>
<head>
<title>Mouseover by CSS</title>
<style>
a:hover {font-weight: bold;
background-color: #CCCCFF;}

a.red {color: #CC0000;}
a.red:hover {font-weight: bold;
background-color: #FFCCCC;}
</style>
</head>
<body>
<a href=&quot;#&quot;>Click Here!</a>
</body>
</html>[/tt] -- Chris Hunt
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top