作家
登录

接收键盘指令的脚本

作者: 来源:www.28hudong.com 2013-03-30 04:09:44 阅读 我要评论

按A就会跳转到地图名片的网页,请按A<SCRIPT language="JavaScript"><!--var hotkey=97var destination="http://mc.mapabc.com"if (document.layers)document.captureEvents(Event.KEYPRESS)function backhome(e){if (document.layers){if (e.which==hotkey)window.location=destination}else if (document.all){if (event.keyCode==hotkey)window.location=destination}}document.onkeypress=backhome onkeydown="javascript:onenter();" function onenter(){ if(event.keyCode==13){alert("回车");}}</SCRIPT>

  推荐阅读

  美化下拉列表

simulate combox control - http://www.never-online.net body, input { font-family: verdana; font-size: 9pt; } h1 { font-family: tahoma; font-size: 22pt; text-align: left; } pre { font>>>详细阅读


本文标题:接收键盘指令的脚本

地址:http://www.17bianji.com/kaifa2/JS/31737.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)