For my last few sites I've used a lot more CSS and less tables. The benefits arising are
* alternate print layout
* works better on handhelds
* compatible with text readers for users with accessibility issues
I've got the Milonic menus on a number of sites. I'm now working on a new site that want dropdown menus yet at the same time I want to retain my CSS mode. I've seen a few posts on the topic but not many answers.
1. Are Milonic working on more accessible menus?
2. Is there a keyboard alternative to onMouseOver? I tried onFocus but couldn't get it to work.
CSS / Accessibility - where to next?
Re: CSS / Accessibility - where to next?
Hi Mark,
There's a set of events you could use for keys: onKeyPress, onKeyDown, and onKeyUp. As with other events, you write your own event handler code, i.e.:
You can also query the event object for various data, like the state of the Alt key, Shift key, etc.
It seems likely that you could use these events in combination with popup() and maybe some other menu functions to create a menu system that would respond to key presses as well as mouse events. If you aren't familiar with these events, you can find a ton of info and examples using Google. Here's a handy reference for javascript events (of course, there are many others too). I can't recall if there are any cross-browser issues with the key events, so you might want to keep an eye out for that.
Cheers,
Kevin
marks wrote:...2. Is there a keyboard alternative to onMouseOver? I tried onFocus but couldn't get it to work.
John's wish is my commandJohn wrote:Andy or Kevin will have to take your other question.
There's a set of events you could use for keys: onKeyPress, onKeyDown, and onKeyUp. As with other events, you write your own event handler code, i.e.:
Code: Select all
onKeyPress = YourJavascriptFunction()
It seems likely that you could use these events in combination with popup() and maybe some other menu functions to create a menu system that would respond to key presses as well as mouse events. If you aren't familiar with these events, you can find a ton of info and examples using Google. Here's a handy reference for javascript events (of course, there are many others too). I can't recall if there are any cross-browser issues with the key events, so you might want to keep an eye out for that.
Cheers,
Kevin