给页面加一个"热键"脚本
下面为脚本显示区!
测试:按"
a
"回到综合类一
脚本说明: 第一步:把如下代码加入<head>区域中 <SCRIPT language="JavaScript"> <!-- var hotkey=97 var destination="zh1.htm" 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 //--> </SCRIPT> 第二步:把<body>区域改为 <body bgcolor="#fef4d9" onload="begintimer()">