[RESOLVED] [2005] can this be achieved in CSS?
I have a few labels that I would like to add these attributes to... They are being placed in an AJAX accordion so I want them to appear as links when someone mousesover them.
I am thinking there is a better way to do this in CSS but not sure how.
Code:
lblRep1.Attributes.Add("onmouseover", "document.getElementById('" & lblRep1.ClientID & "').style.color = 'red';document.body.style.cursor='pointer'")
lblRep1.Attributes.Add("onmouseout", "document.getElementById('" & lblRep1.ClientID & "').style.color = 'black';document.body.style.cursor='default'")
Re: [2005] can this be achieved in CSS?
Just create a class in your stylesheet. Something like
Code:
.myStyle {background-color: red;}
.myStyle:hover{background-color: blue;}
And you'll have to set the class property to "myStyle" in the html where label has been declared.
Re: [RESOLVED] [2005] can this be achieved in CSS?
You must spread some Reputation around before giving it to rjv_rnjn again.
Thanks alot!
Re: [RESOLVED] [2005] can this be achieved in CSS?
Quote:
Originally Posted by Besoup
You must spread some Reputation around before giving it to rjv_rnjn again.
I smell some conspiracy here. :D