W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2005

Re: Javascript question

From: Patrick H. Lauke <redux@splintered.co.uk>
Date: Fri, 07 Jan 2005 12:18:58 +0000
Message-ID: <41DE7E32.5060207@splintered.co.uk>
To: w3c-wai-ig@w3.org

John Carpenter wrote:
> - The "hover" effect does not appear to have a keyboard alternative as
> far as I can tell.  Therefore the menu will only work with the mouse.

Using :hover alone, that's true. You should look at doubling it up with 
the :focus pseudo-class - and as far as I remember, IE gets it wrong in 
this respect and mistakenly wants :active as well...*sigh*

I usually do something like:

element:focus, element:hover, element:active { /*rules*/ }

But I agree, it's not that much more accessible: the javascript method 
obviously requires JS to be available/enabled, whereas the pure CSS 
method requires a modern browser which understands the pseudo-classes. 
However, as long as the top level menu titles are clickable, and take 
the user to an intermediate page which offers the links that would 
normally be in the menu, it should be equivalent even without JS or CSS 
support...if that makes sense.

-- 
Patrick H. Lauke
_____________________________________________________
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com
Received on Friday, 7 January 2005 12:18:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:19 GMT