Hi everybody !
This topic, just for sharing a practical use of php5 to make dynamic accesskeys.
For those who don't know what are accesskeys:
In order to validate the accessibility of your website, it could be useful to give access to your menu links without needing the mouse (i.e. only keyboard). It's very simple in xhtml. For instance, your have a link named "my super link of death" and it's the first one in your menu. The code can be:
The first link has the accesskey 'a', the second, 'b' and so on.
Ex: Wedus.org :: Système d'information d'aide à l'éducation .::. Politique d'accessibilité
The aim of the php5 class:
The problem is when you insert a link between two of them in the menu, you have to change the others accesskeys to keep the order. And you have to modify the page containing the list of accesskeys with their description and the page where the link redirects.
The class manages that.
To create the page listing the accesskeys, you just have to create a short script parsing the hashtable $tableKeys.
Hoping it can be useful :)
Awesome mate, was wondering how OGame did it. I'll try it out a.s.a.p.
Very good article!
Althought.. what is this good for?
I mean.. what will it create, that is better than just having a regular link like
Sorry if it's a newbie question..
Do not forget that some peoples in front of the screen don't have your mobility.
Accesskeys and tabindexes have been created for them because, sometimes, they can not use both the keyboard and the mouse in the same time.
Shortcuts for links have so been invented.
In fact, mani criticizes are made to accesskeys because:
- all browsers don't manage them by the same way (on IE, you have to press Alt+Shift+letter AND press enter).
- the combination is awful and with one arm, try to press Alt+Shift+M on an azerty keyboard ^^
But it's a good way to don't exclude some peoples :)
|All times are GMT. The time now is 03:38 PM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0