A
Andrew Poulos
As a user tabs about a web page I want to highlight with a, say, 2 pixel
solid yellow border the anchor that currently has focus. When the anchor
loses focus the border is removed.
The anchors that may receive a highlight have their style.display set to
'block'.
So far this is working fine except that when the border displays it
pushes the anchor down and to the right by 2 pixels (to accommodate the
border). I thought about simply moving the anchor when it has focus to
"stop" it from appearing to move. Unfortunately some anchors are
positioned absolutely from the right, some with a relative value, and
some are inline. So I need to work out which are which before I can
reposition them.
Is there a simpler/better way to highlight anchors with a border that
doesn't cause them to move on screen?
I tried drawing a new DIV over the top of each anchor but that stops the
mouse click from getting to the anchor.
Andrew Poulos
solid yellow border the anchor that currently has focus. When the anchor
loses focus the border is removed.
The anchors that may receive a highlight have their style.display set to
'block'.
So far this is working fine except that when the border displays it
pushes the anchor down and to the right by 2 pixels (to accommodate the
border). I thought about simply moving the anchor when it has focus to
"stop" it from appearing to move. Unfortunately some anchors are
positioned absolutely from the right, some with a relative value, and
some are inline. So I need to work out which are which before I can
reposition them.
Is there a simpler/better way to highlight anchors with a border that
doesn't cause them to move on screen?
I tried drawing a new DIV over the top of each anchor but that stops the
mouse click from getting to the anchor.
Andrew Poulos