WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Help with adding ACCESSKEY statements?

for

From: Keith Patton
Date: Feb 20, 2004 4:09AM


Hi there,

Here is an example of a link which has javascript functions called for
on/off state setting (remember to use keyboard friendly event triggers as
well as mouse only ones for accessibility reasons).

You then just need to add the accesskey reference as an attribute of the a
tag.

<a onmouseover="JSfunctionOn();" onfocus="JSfunctionOn();"
onmouseout="JSfunctionOff();" onblur="JSfunctionOff();" class="cssClass"
accesskey="1" href="../homepage/">

we just implemented accesskeys on our site, the details on which you can
view at: http://www.ethicalmedia.com/stories/accessingoursite/

Hope that helps,

Keith Patton
Technical Director
Ethical Media
www.ethicamedia.com



-----Original Message-----
From: Jean-Michel Brevelle [mailto: <EMAIL REMOVED> ]
Sent: 20 February 2004 09:41
To: <EMAIL REMOVED>
Subject: Help with adding ACCESSKEY statements?


Hello. This is my first message to the list.

I'm trying to add accesskey definitions to navigational links on a new web
site. It's my first attempt and I'm not doing so well with it.

I think the problem is a conflict between the accesskey statement and the
class definition -- the links are coded in javascript to highlight on
mouseover -- but as this is my first attempt, I'm not really sure.

Here is a sample statement:<a href="Default.htm" title="Return to this web's
Home Page" class="inactive" highlight>Home</a>

The statement otherwise does what it's supposed to do: the link highlights
and a link description appears.

Can anyone help me out with this? If you want to review the rest of the
script, just ask and I'll send it.

Much appreciated. Thanks!


Jean-Michel Brevelle
<EMAIL REMOVED>


**All outgoing mail is scanned using Norton Anti-Virus 2002 to ensure a
virus-free transmission **



----
To subscribe, unsubscribe, suspend, or view list archives,
visit http://www.webaim.org/discussion/


----
To subscribe, unsubscribe, suspend, or view list archives,
visit http://www.webaim.org/discussion/