Solved

Hyperlink underline with mouseover

Posted on 2004-10-14
6
811 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 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
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

617 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