:: :: 博问 :: 闪存 :: :: 联系 :: :: 管理 ::

 

 1 <body onkeydown="whichKey()">
 2 
 3 <script>
 4 function whichKey() 
 5 {
 6     if (document.all)
 7     {
 8         x = event.keyCode;
 9         // alert(x);   测码值
10         if( x==65 && event.ctrlKey )
11         {
12             alert('您按下了Ctrl + a键');
13         }
14     }
15 }
16 </script>
posted on 2005-12-06 10:36  dtor  阅读(607)  评论(1编辑  收藏  举报