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

Re: Javascript Image Roll-over

From: Charles McCathieNevile <charles@sidar.org>
Date: Wed, 15 Jan 2003 06:45:46 +1100
Cc: w3c-wai-ig@w3.org
To: Andrew Kirkpatrick <andrew_kirkpatrick@wgbh.org>
Message-Id: <C63CDC10-27F8-11D7-A9E3-000A95678F24@sidar.org>

Or the CSS equivalent of providing :focus and :hover rules.

  a:focus, a:hover { background-color: yellow }

(Makes for nice clean code, not that I like editing code in the first 
place)

Cheers

Chaals

On Wednesday, Jan 15, 2003, at 01:15 Australia/Melbourne, Andrew 
Kirkpatrick wrote:

>
> I think that it is worth the trouble to include onfocus and onblur 
> event
> handlers to trigger the same script as onmouseover and onblur.  It may 
> not
> be blurring the line between accessibility and usability, but for 
> sighted
> keyboard users it does help in tracking the focus.  You can see a 
> simple
> example of this at http://ncam.wgbh.org.
>
> AWK
>
>>>
>>> At 03:12 PM 01/13/2003, Matthew Smith wrote:
>>>> However, what's bugging me is the need to provide an alternative
>>>> handler; is this really necessary when the function itself doesn't
>>>> actually do anything worthwhile?
--
Charles McCathieNevile           charles@sidar.org
Fundación SIDAR                       http://www.sidar.org
Received on Tuesday, 14 January 2003 14:46:18 GMT

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