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? I really want to keep the code the way it is with the Style sheet, so if someone could just tell me the correct verbage for the above, or point me in the correct direction for -say a glossery of properties or something - that would be the Greatest!
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? I really want to keep the code the way it is with the Style sheet, so if someone could just tell me the correct verbage for the above, or point me in the correct direction for -say a glossery of properties or something - that would be the Greatest!
Thank you ahead of time!