![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I can't figure out why my keypress script is not working. I used the following code: document.onkeypress = KeyCheck; function KeyCheck(e) { var KeyID = (window.event) ? event.keyCode : e.keyCode; //alert(KeyID); switch(KeyID) { case 13: title(); break; case 37: move(-1); break; case 38: toggle(1); break; case 39: move(1); break; case 40: toggle(1); break; } } |
![]() |
| Thread Tools | |
| Display Modes | |
| |