0

我在使用lightbox时遇到了一个奇怪的问题。

无论何时使用新灯箱,用户都可以在相同的页码时间打开相同的灯箱。例如

Using tab button go to `Lightbox link`.
Press enter --> Light box will open.
Press enter --> second light box open below the previous one.
and so on.......

当我使用选项卡并在链接上输入时出现问题,我的焦点没有从链接更改,因此用户能够在单击时打开多个灯箱enter

我尝试关注,但对我不起作用

<a href = '/calenders/add_shipment' onclick ="this.blur()" class='lbOn'>
   <img src='/images/box-plus.png' style='border:none;'>
</a>

我应该采取什么措施来摆脱这种情况。

4

1 回答 1

0

我使用隐藏文本字段中的设置焦点完成了它。如下

<script type="text/javascript" language="JavaScript">
  document.getElementById('set_focus').focus();
</script>

<div style="display:none;"><input type="text" size="20"  id="set_focus"/></div>
于 2010-06-15T10:11:21.057 回答