WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: on mouse over

for

Number of posts in this thread: 6 (In chronological order)

From: Stanzel, Susan - FSA, Kansas City, MO
Date: Wed, Mar 20 2013 5:07AM
Subject: on mouse over
No previous message | Next message →

Hi Listers,

Is there any place for coding a link as on mouse over? A friend of mine sent me a site to look at. All the links on the page said "on mouse over" and a sighted person could open them, but I couldn't. If they can be used, what is the proper coding?

Susie Stanzel
IT Systems Specialist, USDA




This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.

From: Mohit Rajan Verma
Date: Wed, Mar 20 2013 5:17AM
Subject: Re: on mouse over
← Previous message | Next message →

Hi Susan,

As I understood, the issue can be fixed by replacing "onmouseover" with
"onfocus".

Regards,
Mohit Verma

On Wed, Mar 20, 2013 at 4:37 PM, Stanzel, Susan - FSA, Kansas City, MO <
= EMAIL ADDRESS REMOVED = > wrote:

> Hi Listers,
>
> Is there any place for coding a link as on mouse over? A friend of mine
> sent me a site to look at. All the links on the page said "on mouse over"
> and a sighted person could open them, but I couldn't. If they can be used,
> what is the proper coding?
>
> Susie Stanzel
> IT Systems Specialist, USDA
>
>
>
>
> This electronic message contains information generated by the USDA solely
> for the intended recipients. Any unauthorized interception of this message
> or the use or disclosure of the information it contains may violate the law
> and subject the violator to civil or criminal penalties. If you believe you
> have received this message in error, please notify the sender and delete
> the email immediately.
> > > >

From: Jacek Zadrożny
Date: Wed, Mar 20 2013 6:01AM
Subject: Re: on mouse over
← Previous message | Next message →

Hi,
First - if it is really link it can be activated by pressing space. Test
it again.
Second - if it is another kind of elements, you can:
* add it to keyboard visible using tabindex=0,
* add role to object, for example ...role="button".

--
Jacek Zadrożny
http://informaton.pl
All about web accessibility

From: Steve Green
Date: Wed, Mar 20 2013 6:04AM
Subject: Re: on mouse over
← Previous message | Next message →

If JAWS says "onMouseover", it means that the link has a JavaScript onMouseover event handler, which means that an event is triggered when the mouse is hovered over the link. Sometimes that hover event is the only thing that happens, such as a CSS Help overlay being displayed. Sometimes the hover event is in addition to the link being clickable. In the latter case the onMouseover event might just be a change in the colour of the link but it could also trigger a dropdown menu or something else.

As such, there is no one 'right' way to code onMouseover links. They are actually an old way of implementing this functionality and there are better methods that use DOM scripting.

Are you aware that JAWS can trigger onMouseover events by using Ctrl + Insert + Enter? The behaviour depends on the JAWS version and has changed quite a lot over the years. It does not always work but it does most of the time. However, it may be difficult for you to work out what has happened if the change is purely visual, such as a dropdown menu opening.

I have recently seen a couple of websites where it was necessary to press Ctrl + Insert + Enter to trigger the onMouseover event and then press the Enter key to trigger the link. However, I only found that out by experimentation and will not always work.

Steve Green

-----Original Message-----
From: = EMAIL ADDRESS REMOVED = [mailto: = EMAIL ADDRESS REMOVED = ] On Behalf Of Stanzel, Susan - FSA, Kansas City, MO
Sent: 20 March 2013 11:08
To: WebAIM Discussion List
Subject: [WebAIM] on mouse over

Hi Listers,

Is there any place for coding a link as on mouse over? A friend of mine sent me a site to look at. All the links on the page said "on mouse over" and a sighted person could open them, but I couldn't. If they can be used, what is the proper coding?

Susie Stanzel
IT Systems Specialist, USDA




This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.

From: Dawn Budge
Date: Wed, Mar 20 2013 6:37AM
Subject: Re: on mouse over
← Previous message | Next message →

The best option is usually to make the functionality work with the focus
event as well as the mouseover event and ensure that your element is
focussable. Elements that focus as standard are <a>, <input>, <textarea>,
otherwise you must apply tabindex=0 or tabindex=-1 to allow the element to
receive focus. The focus event will fire when the user tabs onto the
element, the focus method is called in JavaScript, and when a mouse user
clicks the element.

Hope that helps,
Dawn

----------------------------------------
From: "Steve Green" < = EMAIL ADDRESS REMOVED = >
Sent: Wednesday, March 20, 2013 12:05 PM
To: "WebAIM Discussion List" < = EMAIL ADDRESS REMOVED = >
Subject: Re: [WebAIM] on mouse over

If JAWS says "onMouseover", it means that the link has a JavaScript
onMouseover event handler, which means that an event is triggered when the
mouse is hovered over the link. Sometimes that hover event is the only
thing that happens, such as a CSS Help overlay being displayed. Sometimes
the hover event is in addition to the link being clickable. In the latter
case the onMouseover event might just be a change in the colour of the link
but it could also trigger a dropdown menu or something else.

As such, there is no one 'right' way to code onMouseover links. They are
actually an old way of implementing this functionality and there are better
methods that use DOM scripting.

Are you aware that JAWS can trigger onMouseover events by using Ctrl +
Insert + Enter? The behaviour depends on the JAWS version and has changed
quite a lot over the years. It does not always work but it does most of the
time. However, it may be difficult for you to work out what has happened if
the change is purely visual, such as a dropdown menu opening.

I have recently seen a couple of websites where it was necessary to press
Ctrl + Insert + Enter to trigger the onMouseover event and then press the
Enter key to trigger the link. However, I only found that out by
experimentation and will not always work.

Steve Green

-----Original Message-----
From: = EMAIL ADDRESS REMOVED =
[mailto: = EMAIL ADDRESS REMOVED = ] On Behalf Of Stanzel, Susan -
FSA, Kansas City, MO
Sent: 20 March 2013 11:08
To: WebAIM Discussion List
Subject: [WebAIM] on mouse over

Hi Listers,

Is there any place for coding a link as on mouse over? A friend of mine
sent me a site to look at. All the links on the page said "on mouse over"
and a sighted person could open them, but I couldn't. If they can be used,
what is the proper coding?

Susie Stanzel
IT Systems Specialist, USDA

This electronic message contains information generated by the USDA solely
for the intended recipients. Any unauthorized interception of this message
or the use or disclosure of the information it contains may violate the law
and subject the violator to civil or criminal penalties. If you believe you
have received this message in error, please notify the sender and delete
the email immediately.
messages to = EMAIL ADDRESS REMOVED =

From: Stanzel, Susan - FSA, Kansas City, MO
Date: Wed, Mar 20 2013 6:51AM
Subject: Re: on mouse over
← Previous message | No next message

I read on another message that a better way to code would be OnFocus.

Susie
-----Original Message-----
From: = EMAIL ADDRESS REMOVED = [mailto: = EMAIL ADDRESS REMOVED = ] On Behalf Of Steve Green
Sent: Wednesday, March 20, 2013 7:04 AM
To: WebAIM Discussion List
Subject: Re: [WebAIM] on mouse over

If JAWS says "onMouseover", it means that the link has a JavaScript onMouseover event handler, which means that an event is triggered when the mouse is hovered over the link. Sometimes that hover event is the only thing that happens, such as a CSS Help overlay being displayed. Sometimes the hover event is in addition to the link being clickable. In the latter case the onMouseover event might just be a change in the colour of the link but it could also trigger a dropdown menu or something else.

As such, there is no one 'right' way to code onMouseover links. They are actually an old way of implementing this functionality and there are better methods that use DOM scripting.

Are you aware that JAWS can trigger onMouseover events by using Ctrl + Insert + Enter? The behaviour depends on the JAWS version and has changed quite a lot over the years. It does not always work but it does most of the time. However, it may be difficult for you to work out what has happened if the change is purely visual, such as a dropdown menu opening.

I have recently seen a couple of websites where it was necessary to press Ctrl + Insert + Enter to trigger the onMouseover event and then press the Enter key to trigger the link. However, I only found that out by experimentation and will not always work.

Steve Green

-----Original Message-----
From: = EMAIL ADDRESS REMOVED = [mailto: = EMAIL ADDRESS REMOVED = ] On Behalf Of Stanzel, Susan - FSA, Kansas City, MO
Sent: 20 March 2013 11:08
To: WebAIM Discussion List
Subject: [WebAIM] on mouse over

Hi Listers,

Is there any place for coding a link as on mouse over? A friend of mine sent me a site to look at. All the links on the page said "on mouse over" and a sighted person could open them, but I couldn't. If they can be used, what is the proper coding?

Susie Stanzel
IT Systems Specialist, USDA




This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.