0

我试图简单地为我有键盘快捷键设置的锚链接添加一些 CSS。菜单项。

<a id="about">About The Company</a>

shortcut.add("a",function() {
    $("#about").trigger('click');  
    },{
    'disable_in_input':true
});

When the keyboard 'a' is selected, I want to get the "About The Company" anchor to fade into red for a second to give the user feedback that it has been selected.

这是我正在使用的脚本 fyi:http ://www.openjs.com/scripts/events/keyboard_shortcuts/

4

1 回答 1

0
shortcut.add("a",function() {
    $("#about").hide().css('color','#ff0000').fadeIn(700);
});
于 2013-06-06T04:20:47.860 回答