Solved

Hyperlink underline with mouseover

Posted on 2004-10-14
6
803 Views
Last Modified: 2012-06-21
I am trying to create a hyperlink in ASP.NET (VB) that changes to an underlined hyperlink when you drag the mouse over it.

Is there any way to do it without using javascript and 2 gif's ?
0
Comment
Question by:waterzap
  • 4
  • 2
6 Comments
 
LVL 18

Expert Comment

by:tusharashah
ID: 12314401
Oh yes..
the easiest way of doing that is to set Style for that HyperLink! like following (actually there are many ways of doing that)
----------------------------------------------------------------------------------------------------
<!-- Add following Style to your header -->
<style type="text/css">
   a.hyperlinkStyle:link {
      color: #666666;
      text-decoration: none;
   }
   
   a.hyperlinkStyle:hover {
      color: #000029;
      text-decoration: underline;
   }
</style>
----------------------------------------------------------------------------------------------------

Now, in your HyperLink Property set CssClass="hyperlinkStyle"

-tushar
0
 
LVL 18

Accepted Solution

by:
tusharashah earned 500 total points
ID: 12314497
Here are all different attribute that you can use with HyperLink:

----------------------------------------------------------------------------------------------------------------
a.hyperlinkStyle:link {
      font-family: Verdana, Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: bold;
      color: #666666;
      text-decoration: none;
}
a.hyperlinkStyle:visited {

      font-family: Verdana, Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: bold;
      color: #666666;
      text-decoration: none;
}
a.hyperlinkStyle:hover {
      font-family: Verdana, Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: bold;
      color: #000029;
      text-decoration: underline;
}
a.hyperlinkStyle:active {
      font-family: Verdana, Arial, Helvetica, sans-serif;
      font-size: 10px;
      font-weight: bold;
      color: #FFFFFF;
      text-decoration: none;
}
----------------------------------------------------------------------------------------------------------------

-tushar
0
 

Author Comment

by:waterzap
ID: 12314739
I will give you the points. I just have a stupid question about the hyperlink property, seeing that I cannot get this to work.

Please send me an e-mail

nnmnwhr@yahoo.com


0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 18

Expert Comment

by:tusharashah
ID: 12318534
If it's any EE related question then you can ask it here. I'll try my best to solve it :)

-tushar
0
 

Author Comment

by:waterzap
ID: 12319532
Got it working..thanks
0
 
LVL 18

Expert Comment

by:tusharashah
ID: 12320048
Good to know that :)

Thanks for points

-tushar
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now