Small Mosaic


Categories:

/books
/career
/codinghorrors
/events
/geekstuff
/justdont
/languages
/languages/bash
/linkshot
/magazines
/meta
/misctech
/movies
/nottech
/operatingsystems
/operatingsystems/linux
/operatingsystems/linux/debian
/operatingsystems/solaris
/perl
/presentations
/programming
/python
/ruby
/security
/security/apache
/security/tools
/serversmells
/services
/services/dns
/sites
/specifications
/sysadmin
/testing
/tools
/tools/commandline
/tools/firefox
/tools/gui
/tools/network
/tools/online
/tools/online/greasemonkey
/tools/puppet
/unixdaemon

Archives:

July 20111
June 20112
May 20113
April 20112
March 20117
January 20111
December 20103
November 20103
August 20101
July 20101
June 20104
May 20102
April 20101
March 20108
February 20101
January 20102
Full Archives

Sat, 26 Jun 2004

Unixdaemon AccessKeys
The Unixdaemon site is undergoing some design changes as and when i get time. Surprisingly its gone from being a short set of links pointing to a few bits to code to something that actually gets unique visitors every day; and its not just my mum! On the left of the home page I've added a small set of navigation links and while working through the CSS i thought I'd try adding access keys.

First some basics, an accesskey works in the same way as the menu shortcuts in the native OS, you use a meta key (typically Alt on Windows and Ctrl on Macs) and press another key to access a function or menu. The code for setting this up is remarkably simple, to make a meta-h combination move you to the home page you'd use code like this in your page:

<a href="index.html" accesskey="h">Home</a>

This leads me to the problems, firstly not all browsers support them. This is the easiest to solve, wait long enough and everything in mainstream usage will accommodate them. Secondly there is the issue of precedence, your accesskeys may be overridden by the browser or OS. The reverse is also true, if you choose certain letters such as the 'h' presented above, you lose the ability to use shortcut keys to access browser functionality. In IE you'll no longer be able to use Alt-h to access the Help menu.

If you want to dig a little deeper into access keys these two links cover the basics and more advanced topics respectively.

Site Point's Using Accesskeys is Easy and for more advanced usage A List Apart has a good article called Accesskeys: Unlocking Hidden Navigation on using them with CSS.

Like this post? - Digg Me! | Add to del.icio.us! | reddit this!

Posted: 2004/06/26 12:52 | /unixdaemon | Permanent link to this entry | This entry and same date


books career codinghorrors events geekstuff justdont magazines meta misctech movies nottech operatingsystems/linux operatingsystems/linux/debian operatingsystems/solaris perl programming python ruby security security/apache security/tools serversmells services/dns sites sysadmin testing tools tools/commandline tools/firefox tools/gui tools/network tools/online tools/online/greasemonkey tools/puppet unixdaemon

Copyright © 2000-2010 Dean Wilson XML feed logo