Re: :accesskey

dhtmlkit@dhtmlkitchen.com wrote:
> I just thought this would be a useful idea.
> 
> a.tab:accesskey {
>     text-decoration: underline;
> }
> 
> 
> <a href="#content3" accesskey="d" tabindex="3"
> 			  id="tab3" class="tab">Download</a>

How do you identify which letter is the access key?  First you have to 
figure out which attribute, or whatever indicates the access key to use. 
  That could probably be defined to be specific the the markup language, 
or there could be a css property that indicates it. eg.

a, area, etc { accesskey: attr(accesskey); }
:accesskey { text-decoration: underline; }

But then, how do you determine which occurence of the letter to apply 
the style to?  Is it possible to define an algorithm that could take a 
good guess at the most appropriate?  The first is not always the best. 
Are there any HTML implementations that actually do underline the access 
key that could be used for a reference?

-- 
Lachlan Hunt

http://www.lachy.id.au/
lachlan.hunt@lachy.id.au

Received on Saturday, 4 September 2004 01:06:35 UTC