<HTML> <HEAD> <TITLE>JS特效 ---给页面加热键</TITLE>
</HEAD>
<BODY> 按"a"键试试 <SCRIPT language="JavaScript"> <!-- var hotkey=97 var destination="http://www.jsweb8.cn"; if (document.layers) document.captureEvents(Event.KEYPRESS) function Helpor_net(e){ if (document.layers){ if (e.which==hotkey) window.location=destination; } else if (document.all){ if (event.keyCode==hotkey) window.location=destination; } } document.onkeypress=Helpor_net; //-->
</SCRIPT> </BODY> </HTML>
【提示:你可以先修改代码再点击运行】