<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
function t1(){
alert('11');
}
function t2(){
alert('22');
}
//-->
</SCRIPT>
</HEAD>
<script>
<!--
var travel=true
var hotkey=98 /* hotkey即为热键的键值,是ASII码,这里98代表b键 */
var destination="../js.htm" /* 在此定义热键对应的页面 */
if (document.layers)
document.captureEvents(Event.KEYPRESS)
function gogo(e)
{ if (document.layers) {
if (e.which==hotkey&&travel) window.location=destination }
else if (document.all){
if (event.keyCode==hotkey) window.location=destination }
}
document.onkeypress=gogo
-->
</script>