ISPrincess
Programmer
I am new to ASP and recently need to change the colors of a link on one of my pages based on some criteria.
I found the following code by john pollock on pageresource.com (which - by the way -was extremely helpful)
<HEAD>
<STYLE type="text/css">
<!--
.link1 A { color:green }
.link2 A { color:red }
-->
</STYLE>
</HEAD>
Then when I show the link and reference it I get the colors i need based on the criteria.
ie:
Response.Write("<TD><SPAN Class='link1'><a href='SomePage.asp?field=Field1&value=" & sValue & "' Target='_blank'>" & sValue & "</a></SPAN></TD>" & vbCrLf)
This works fantastic - but I would like to add a tooltip to this link when the user hovers but I am not familiar with properties of this object within the above CSS.
I would think it is something like:
.link1 A:Hover { tooltiptext:"This is a Green Link" }
Can someone please help?
Thank you ahead of time.
I found the following code by john pollock on pageresource.com (which - by the way -was extremely helpful)
<HEAD>
<STYLE type="text/css">
<!--
.link1 A { color:green }
.link2 A { color:red }
-->
</STYLE>
</HEAD>
Then when I show the link and reference it I get the colors i need based on the criteria.
ie:
Response.Write("<TD><SPAN Class='link1'><a href='SomePage.asp?field=Field1&value=" & sValue & "' Target='_blank'>" & sValue & "</a></SPAN></TD>" & vbCrLf)
This works fantastic - but I would like to add a tooltip to this link when the user hovers but I am not familiar with properties of this object within the above CSS.
I would think it is something like:
.link1 A:Hover { tooltiptext:"This is a Green Link" }
Can someone please help?
Thank you ahead of time.