Solved

Hyperlink underline with mouseover

Posted on 2004-10-14
6
804 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

23 Experts available now in Live!

Get 1:1 Help Now