📄 java12.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0046)http://pbuild.edu.chinaren.com/net/hotkey.html -->
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type><LINK
href="java12.files/pbuild.css" rel=stylesheet type=text/css>
<SCRIPT>
var travel=true
var hotkey=98
var destination="../index.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>
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
<meta name="Microsoft Theme" content="maize 011">
</HEAD>
<BODY background="maizbk.jpg" bgcolor=#ffffff text="#000000" link="#669999" vlink="#999900" alink="#3366CC">
<!--mstheme--><font face="宋体">
<CENTER>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=400>
<TBODY>
<TR>
<TD>
<CENTER><FONT color=#000000><BR><BR>给页面定义热键</FONT> </CENTER>
<P><BR>激活本窗口按一下b键,会回到首页。<BR><BR>把下面代码copy入你html文件的<head>和</head>中即可:<BR><script><BR><!--<BR>var
travel=true<BR>var hotkey=98 /*
hotkey即为热键的键值,是ASII码,这里98代表b键 */<BR>var destination="../index.htm" /*
在此定义热键对应的页面 */<BR>if
(document.layers)<BR>document.captureEvents(Event.KEYPRESS)<BR>function
gogo(e)<BR>{ if (document.layers) { <BR>if
(e.which==hotkey&&travel) window.location=destination }<BR>else if
(document.all){ <BR>if (event.keyCode==hotkey) window.location=destination
}<BR>}<BR>document.onkeypress=gogo <BR>--><BR></script>
<BR></P></TD></TR></TBODY></TABLE></CENTER><!--mstheme--></font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -