<HTML>
<HEAD>
<TITLE>网页特效观止|JsCode.CN|---给页面加热键</TITLE>
</HEAD>
<BODY>
按"a"键试试
<SCRIPT language="JavaScript">
<!--
var hotkey=97
var destination="http://jscode.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>
