»
EnglishFrenchVietnamese

Print - Key Table Creator - JavaScriptBank.com

Full version: jsB@nk » Misc » Key Table Creator
URL: https://www.javascriptbank.com/keytable.html

Key Table Creator © JavaScriptBank.comWhen visitors press the keyboard, the script will display ASCII code of that key on the webpage.

Full version: jsB@nk » Misc » Key Table Creator
URL: https://www.javascriptbank.com/keytable.html



CSS
<STYLE>.dcl {PADDING-RIGHT: 1px; PADDING-LEFT: 1px; FONT-WEIGHT: bold; FONT-SIZE: 11px; FILTER: shadow(color=red,direction=25); LEFT: 0px; PADDING-BOTTOM: 1px; COLOR: white; PADDING-TOP: 1px; POSITION: relative; TOP: 0px; HEIGHT: 1px}.ha {LEFT: 0px; COLOR: red; POSITION: relative; TOP: 0px; BACKGROUND-COLOR: black}.hb {LEFT: 0px; COLOR: red; POSITION: relative; TOP: 0px; BACKGROUND-COLOR: silver}</STYLE><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<FORM name=c1><DIV class=dcl id=dynTex></DIV><SCRIPT>var mKey,mKeynum;document.onkeydown =myKeyDownfunction myKeyDown(e){mKeynum =event.keyCodemKey =String.fromCharCode(mKeynum)switch(mKeynum){case 27:{ mKey = "Escape Key" ;break;}case 18:{ mKey = "Alt Key" ;break;}case 16:{ mKey = "Shift Key" ;break;}case 13:{ mKey = "Enter Key" ;break;}case 9:{ mKey = "Tab Key" ;break;}case 20:{ mKey = "Caps Lock Key" ;break;}case 17:{ mKey = "Ctrl Key" ;break;}case 93:{ mKey = "Short Cut Key" ;break;}case 32:{ mKey = "Space" ;break;}case 91:{ mKey = "Windows Start Key - on Left side of KeyBoard " ;break;}case 92:{ mKey = "Windows Start Key - on Right side of KeyBoard" ;break;}case 19:{ mKey = "Pause Key" ;break;}case 145:{ mKey = "Scroll Lock Key" ;break;}case 17:{ mKey = "Ctrl Key" ;break;}}document.all.dynTex.innerHTML+="<b>"+mKeynum+"</b>&nbsp;&nbsp;&nbsp;&nbsp;<font color='silver'>"+mKey+"<br>"//document.all.dynTex.innerHTML+=mKey }function ch (clName){window.event.srcElement.className = clName}</SCRIPT></FORM><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->