脚本说明:
第一步:把如下代码加入<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 >
<!--
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" οnlοad="begintimer()">