background image

            .bind("keydown", "3", function (er) { alert("您按下了 3 键!"); 
return false; })

            .bind("keydown", "4", function (er) { alert("您按下了 4 键!"); 
return false; })

        });

    </script>

效果:

下面是 jquery.hotkeys 的官方使用文档,我用颜色把里面的按键组合标记了一
下:

<script src="jquery1.4.1.js"></script>

<script src="jquery.hotkeys.js"></script>

        <script>

            //This page is a result of an autogenerated content made by 
running test.html with firefox.

            function domo(){