473,591 Members | 2,871 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get the hyperlink underlined with MouseOver or getfocus

All,

I have seen the feature on many sites and would like to implement it for
myself as well, where if a mouse is moved over a hyperlink, it gets
underlined. For example, in my code, if the mouse is moved over "home" or
gets the focus, I would like it to be underlined.

<html>
<body>
<font face="Arial, Helvetica, sans-serif" size="1" color="#999999" >
<a href="http://www.cnn.com"> home
</body>
</html>
Any help would be greatly appreciated.

Best Regards,

Addi
Jul 20 '05 #1
3 6025
addi wrote:
I have seen the feature on many sites and would like to implement it for
myself as well, where if a mouse is moved over a hyperlink, it gets
underlined. For example, in my code, if the mouse is moved over "home" or
gets the focus, I would like it to be underlined. <font face="Arial, Helvetica, sans-serif" size="1" color="#999999" >
<a href="http://www.cnn.com"> home


Take a basic course in CSS <http://dorward.me.uk/www/css/#tutorials>, and
pay especial attention to the parts about pseudoclasses like :hover.

Also, take note that the underline is a _big_ clue that some text is a link,
removing it isn't a good idea in most circumstances. The user _might_ be
able to work it out from the colour, but a significant proportion of the
population suffers from colour blindness, and some people do use greyscale
monitors still.

--
David Dorward <http://dorward.me.uk/>
Jul 20 '05 #2
Somewhere around 12/27/03 8:57 AM, addi typed wildly with reckless abandon:
All,

I have seen the feature on many sites and would like to implement it for
myself as well, where if a mouse is moved over a hyperlink, it gets
underlined. For example, in my code, if the mouse is moved over "home" or
gets the focus, I would like it to be underlined.

<html>
<body>
<font face="Arial, Helvetica, sans-serif" size="1" color="#999999" >
<a href="http://www.cnn.com"> home
</body>
</html>
Any help would be greatly appreciated.

Best Regards,

Addi

First of all you want to close the tag </a>

Then you want to use your stylesheet to make every link the same without
adding tons of extra code before each one. And make sure that the link
text is distinguishable from the body text. Also, if the link size is
the same as the rest of the text there's no need to specify size or family.

a {
text-decoration: none;
font-family: sans-serif;
font-size: 100%;
color: #999999;
}

a:hover {
text-decoration: underline;
font-family: sans-serif;
font-size: 100%;
color: #999999;
}

Hope this helps, Aron

--
The last time I was inside a woman was when I went to the Statue of Liberty.
Jul 20 '05 #3
In article <jS************ *******@news01. roc.ny> in
comp.infosystem s.www.authoring.html, addi wrote:
I have seen the feature on many sites and would like to implement it for
myself as well, where if a mouse is moved over a hyperlink, it gets
underlined.


Popularity is not the same thing as quality. The design you cite
above is an example.

Think about it from a user's point of view: She must move her mouse
over EVERY DAMN WORD on the page, hoping to find a link. That' _if_
she even suspects there are links there to be found.

More likely, she'll shake her head in frustration, click the Back
button, and go to the next site in her list of search results.

You want to make links easy to find, not hard to find.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5277
by: Salad | last post by:
If I create a field as a hyperlink, Access will open the hyperlink if I single click it. Is there a method within the operating system that would tell access to only open the hyperlink if double-clicked? Is there anything I can do so that Access will open a hyperlink on a double-click? I find opening a hyperlink on a single click annoying. One reason I find it annoying is that I can't single click and then right click to edit/update...
2
2618
by: Peter Eriksson | last post by:
I am making a link with the HyperLink-class like this: HyperLink link = new HyperLink(); link.NavigateUrl = "http://www.page.com"; link.Text = "Some text"; link.ImageUrl="/images/linkimage.gif"; What I would like to do is to show another image for the link on the mouseover event.
3
1491
by: Doug Swanson | last post by:
So I've added a hyperlink to a screen based on a url stored in a database. The problem is that the hyperlink text is not underlined....but it becomes underlined when you hover over it. Small thing but it's what the users want... The screen/window that it is on is a popup window if that makes any difference....btw I'm using a literal and emitting the html code on the fly...the same results happen when I use the .NET hyperlink control. ...
8
3785
by: Nathan Sokalski | last post by:
I have several System.Web.UI.WebControls.HyperLink Controls which I want to display as rollover images. I know how to make these manually using the <a> and <img> tags or the <a> tag and a System.Web.UI.WebControls.Image Control or a HyperLink and Image Controls, but the onMouseOver and onMouseOut attributes must be in the <img> tag. If I were to use the HyperLink's ImageUrl property and add the attributes using the...
1
2414
by: Lauren Quantrell | last post by:
I see lots of threads on this but no solution. I'm using the following to output my report in HTML format: DoCmd.OutputTo acReport, "myReportName", acFormatHTML,... Some rows have valid hyperlink info and some do not. When I open the HTML document, I want each item in each row to contain one field - if it contains a valid hyperlink it will be underlined and be clickable to go to the hyperlink address, if it does not contain a
4
8140
by: Mat | last post by:
How do you modify the color of an hyperlink when your mouse go over it? <asp:HyperLink
4
4118
by: =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post by:
Hi I have a GridView that is displaying master records. Some of these records have child records. I would like to a column to my master GridView such that for each master record that has detail records, it displays a hyperlink that then takes the user to the details page. If a master record doesn't have any children, I just want it to display its ID with no hyperlink.
1
2413
SBCUser666
by: SBCUser666 | last post by:
Form field (Text66) defined as Hyperlink. Access 2003 table field defined as Hyperlink. Using VBA I build the hyperlink and poke it into the form field. The field displays like it is a hyperlink (blue and underlined) but clicking on it does nothing. If I open the table and click on the field nothing happens. On the form, if I delete and retype just 1 character the hyperlink functions correctly (on the form and from the table). Thinking that...
10
2994
by: sierra7 | last post by:
I'm trying to create a form where a user enters a document reference number and then clicks a command button to add a hyperlink to the document, via a file picker. Thanks to Adezii's excellent article http://bytes.com/topic/access/answers/725778-inserting-hyperlink-into-table I can manage to create a hyperlink to the document and store it in the table, but it is the full hyperlink path not the reference number of the document that is...
0
7934
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7870
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8236
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
5732
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5400
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3850
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3891
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1465
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.