[thelist] Image border
Andrew Clover
and at doxdesk.com
Sat May 4 13:55:01 CDT 2002
john-paul <jwalton at four09.org> wrote:
> If you are willing to use some javascript, I think
> <a href="whatever" onFocus="this.blur();">
> will work in your situation.
Don't do this! This totally messes up keyboard navigation. That
affects more people than you think - it's not just disabled users,
but many people with portable computers.
Here is an alternative with less bad side-effects. It uses focus-to-
blur temporarily so that clicking doesn't set focus, but keyboard
nav works as normal. Code your links normally (no scripting
required), but include a link to this script:
function link_down() { this.onfocus= this.blur; }
function link_up() { this.onfocus= null; }
function link_bind() {
for (var i= document.links.length; i-->0;) {
document.links[i].onmousedown= link_down;
document.links[i].onmouseup= link_up;
} }
if (window.clientInformation) // IE
link_bind();
at the bottom of your page (just below </body>).
--
Andrew Clover
mailto:and at doxdesk.com
http://and.doxdesk.com/
More information about the thelist
mailing list