Forum Moderators: not2easy
I have three text links. When user will select customer link the color of the link should turn to grey.
When user will click on employee color of the link should turn to grey and color of the customer link should turn back to #1E85BE( style of a).
Here is my code.
<a href="~/customer.aspx"> customer </a>   ¦
  
Employee   ¦   <a href="~/employee.aspx"> employee </a>
   ¦
  
Other Users   ¦   <a href="~/Users.aspx"> Users </a>
Here is my css style
a { color: #1E85BE; text-decoration: none; }
a:visited { color: #1E85BE; }
a:hover { text-decoration: underline; }
How can i change the color of the selected hyperlink to grey.
Please help.
Thanks!
here is my full code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head><title>
Untitled Page
</title>
<style>
a { color: #1E85BE; text-decoration: none; }
a:visited { color: #1E85BE; }
a:hover { text-decoration: underline; }
a:active { color: gray; }
</style>
</head>
<body>
<form name="form1" method="post" action="default.aspx" id="form1">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTIwNzMyMTQ0ODNkZOLVaQahNQe2mRABslJlbpswG6xo" />
</div>
<div id="secNavigationalMenu" style="margin: 3px 10px 0px 20px; width: 650px; font-size: 12px;font-weight:bold; line-height: 1.2em;text-align:right;padding-right:20px;">
<a href="test.htm" id="webPlatform"> Emp </a>   ¦   customer   ¦   <a href="test.htm" id="downloadlink"> user </a>
</div>
</form>
</body>
</html>
If you want the links to change color in respect to which one was last clicked - you'll have to use javascript or ASP or w/e to keep track of which one was clicked and then change their a:visited and a:link color's respectively.