Hai
i have a problem in mover over in link button,i have 5 link buttons one by one,if we 1'st link button is click that link button font color change to blue and other change to black color.if we click 2nd link button ,2nd one change to blue color and 1st and other link button font color change to black color and so on.
By page load all link button font color is black.Below is properties change in html code.
<asp:LinkButton ID="lnkAddDept" runat="server" Font-Underline="False" CssClass ="change" OnClientClick="return AddDept_ClientClick()"font-family="Arial"
font-size=" 12px"
font-weight" bold"
color=" black">Add Department </asp:LinkButton>
in change css
.change:hover
{
color: Red;
text-decoration:underline;
cursor :pointer ;
}
and in every link button ClientClick event
document.getElementById("ctl00_ContentPlaceHolder1_lnkAddDept").style.color = "black"
document.getElementById("ctl00_ContentPlaceHolder1_lnkAddUser").style.color = "black"
document.getElementById("ctl00_ContentPlaceHolder1_lnkImpADUser").style.color = "black"
document.getElementById("ctl00_ContentPlaceHolder1_lnkImpUserList").style.color = "black"
document.getElementById("ctl00_ContentPlaceHolder1_lnkExpUserList").style.color = "#0064a5"
if i using above javascript for change color for link button,after that mouse over css not work,but if i remove javascript then it will work,
But my need is if click any link that one change to blue color others need to change black color and also need to work mouse over css
In simple words what i try to say,if i changed font color for link button and try to use mouser over css,it not work,but i leave default property for link button ,mouse over css work,
Regards
Aravind