Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link and ToolTip Question 1

Status
Not open for further replies.

ISPrincess

Programmer
Feb 22, 2002
318
US
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=&quot;text/css&quot;>
<!--
.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(&quot;<TD><SPAN Class='Link1'><a href='SomePage.asp?field=Field1&value=&quot; & sValue & &quot;' Target='_blank'>&quot; & sValue & &quot;</a></SPAN></TD>&quot; & 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:&quot;This is a Green Link&quot; }


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!
 
Here it is:

<a href='SomePage.asp?field=Field1&value=&quot; & sValue & &quot;' Target='_blank' title=&quot;this is a tooltip&quot;>

 
Thank you - I wanted to put the code up in the STYLE CSS if possible though.
 
Thank you again. That's how bad I am - these are how lame my questions are.

Can you direct me to a good starting point to get the lowdown on the CSS Properties etc?
 
Thank you again for all of your time starway. I really appreciate it!
 
interesting that I see this post here as well. you may want to check the other post you made in the ASP forum as well. You really only need to post in one forum at a time. If someone feels you may have posted it in a wrong forum they will usually let you know hope I helped!
[roll2]
admin@onpntwebdesigns.com
 
Yes, it is posted 2ce - once here and once in HTML and CSS. I posted it there because after the first response, I felt it may have been in the wrong forum.

If there us more input to this, please use the HTML and CSS forum to respond.

Thank you all for all your time and help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top