Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Hyperlink underline with mouseover

Posted on 2004-10-14
6
Medium Priority
?
813 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

730 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