📄 test2.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>右键菜单测试窗口</title>
<script>
var x, y;
document.onmousemove=moveMouse
document.onmousedown=click
function moveMouse()
{
Layer1.style.left = event.clientX - 2;
Layer1.style.top = event.clientY - 2;
}
function click() {
if (event.button==2)
{
x = event.clientX;
y = event.clientY;
Layer1.style.visibility="";
window.setTimeout("showMenu();", 500);
}
else{
HiddenPop();
PopMenu.style.visibility='hidden';
}
}
function showMenu()
{
PopMenu.style.left = x- 2;
PopMenu.style.top = y- 2;
PopMenu.style.visibility="";
HiddenPop();
}
function HiddenPop()
{
Layer1.style.visibility='hidden';
}
</script>
<style type="text/css">
<!--
body {
font-size: 9pt;
background-color: #E2F1FE;
}
td {
font-size: 9pt;
line-height: 120%;
}
-->
</style>
</head>
<body>
<div id=Layer1 style="position:absolute; width:4px; height:4px; z-index:3; visibility: hidden">
<select style="width:4">
</select>
</div>
<div id=PopMenu style="position:absolute; width:100px; height:100px; z-index:1; visibility: hidden; left: 48px; top: 13px;">
<table border=2 width=100 >
<TH align="center" color="sliver" onclick="">
唯鱼的菜单
</tH>
<tr>
<td> click it!:)
</td>
</tr>
<tr><td><a href="http://www.yy0736.com" target="_blank">夜鹰教学网</a>
</table>
</div>
<p align="center">在窗口中右击一下看看出什么:)</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -