📄 cmenu.htm
字号:
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>右键菜单.....</title>
<SCRIPT LANGUAGE="JScript.Encode">
var mstate=false;
function test22(){
var x=window.event.clientX;
var y=window.event.clientY;
if(mstate==false){
if(x>10&&y>10){
mstate=true;
}
}else{
if(x<2||y<2||x>140||y>225){window.close();}
}
}
function test33(){}
function test44(){window.onblur=test33;}
function disableblur(){var x=1;}
function scolor(x){x.bgColor="#000066";x.style.color="#ffffff";}
function rcolor(x){x.bgColor="#EFEFEF";x.style.color="#000000";}
function otherstuff(cmd){
window.onblur=disableblur;
var x=window.dialogArguments;
x.contextcode=cmd;
window.close();
}
function tableprops(){
var x=window.dialogArguments;x.contextcode="1";
window.close();
}
function cellprops(){
var x=window.dialogArguments;
x.contextcode="2";
window.close();
}
function imageprops(){
var x=window.dialogArguments;
x.contextcode="3";window.close();
}
function cancelthis(){window.close();}
</SCRIPT>
<style type="text/css">
<!--
td {
font-size: 12px;
cursor: hand;
}
-->
</style>
</head>
<body bgcolor="#EFEFEF" leftmargin="0" topmargin="2" onload="test33();">
<table width="145" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="18" height="17" align="center" bgcolor="#D8D7DB"><img src="btn_paste.gif" width="16" height="17"></td>
<td height="17" onClick="otherstuff('7');" onMouseOver="scolor(this);" onMouseOut="rcolor(this);"> 粘贴</td>
</tr>
<tr>
<td width="18" height="17" align="center" bgcolor="#D8D7DB"></td>
<td height="17" onClick="otherstuff('8');" onMouseOver="scolor(this);" onMouseOut="rcolor(this);"> 只粘贴文本</td>
</tr>
<tr>
<td width="18" align="center" bgcolor="#D8D7DB"></td>
<td><img vspace = "2" id="line2" border="0" src="line_divider.gif" width="100%" height="2"></td>
</tr>
<tr>
<td width="18" height="17" align="center" bgcolor="#D8D7DB"></td>
<td height="17" onClick="otherstuff('20');" onMouseOver="scolor(this);" onMouseOut="rcolor(this);"> 插入书签</td>
</tr>
<tr>
<td width="18" align="center" bgcolor="#D8D7DB"></td>
<td><img src="line_divider.gif" width="100%" height="2" vspace = "2" border="0" id="line2"></td>
</tr>
<tr>
<td width="18" align="center" bgcolor="#D8D7DB"><img src="btn_table.gif" width="16" height="17"></td>
<td height="17" onClick="tableprops();" onMouseOver="scolor(this);" onMouseOut="rcolor(this);"> 表格属性</td>
</tr>
<tr>
<td width="18" height="17" align="center" bgcolor="#D8D7DB"></td>
<td height="17" onClick="cellprops();" onMouseOver="scolor(this);" onMouseOut="rcolor(this);"> 单元格属性</td>
</tr>
<tr>
<td width="18" height="17" align="center" bgcolor="#D8D7DB"></td>
<td height="17" onClick="otherstuff('31');" onMouseOver="scolor(this);" onMouseOut="rcolor(this);"> 插入列</td>
</tr>
<tr>
<td width="18" height="17" align="center" bgcolor="#D8D7DB"></td>
<td height="17" onClick="otherstuff('32');" onMouseOver="scolor(this);" onMouseOut="rcolor(this);"> 删除列</td>
</tr>
<tr>
<td width="18" height="17" align="center" bgcolor="#D8D7DB"></td>
<td height="17" onClick="otherstuff('33');" onMouseOver="scolor(this);" onMouseOut="rcolor(this);"> 插入行</td>
</tr>
<tr>
<td width="18" height="17" align="center" bgcolor="#D8D7DB"></td>
<td height="17" onClick="otherstuff('34');" onMouseOver="scolor(this);" onMouseOut="rcolor(this);"> 删除行</td>
</tr>
<tr>
<td width="18" height="17" align="center" bgcolor="#D8D7DB"></td>
<td height="17" onClick="otherstuff('35');" onMouseOver="scolor(this);" onMouseOut="rcolor(this);"> 向右合并单元格</td>
</tr>
<tr>
<td width="18" height="17" align="center" bgcolor="#D8D7DB"></td>
<td height="17" onClick="otherstuff('36');" onMouseOver="scolor(this);" onMouseOut="rcolor(this);"> 向下合并单元格</td>
</tr>
<tr>
<td width="18" height="17" align="center" bgcolor="#D8D7DB"></td>
<td height="17" onClick="otherstuff('37');" onMouseOver="scolor(this);" onMouseOut="rcolor(this);"> 拆分单元格</td>
</tr>
<tr>
<td width="18" height="17" align="center" bgcolor="#D8D7DB"></td>
<td height="17" onClick="otherstuff('9');" onMouseOver="scolor(this);" onMouseOut="rcolor(this);"> 清除表格设置</td>
</tr>
<tr>
<td width="18" align="center" bgcolor="#D8D7DB"></td>
<td><img vspace = "2" id="line2" border="0" src="line_divider.gif" width="100%" height="2"></td>
</tr>
<tr>
<td width="18" align="center" bgcolor="#D8D7DB"><img src="btn_image.gif" width="16" height="17"></td>
<td onMouseOver="scolor(this);" onMouseOut="rcolor(this);" onClick="imageprops();"> 图片属性</td>
</tr>
<tr>
<td width="18" align="center" bgcolor="#D8D7DB"></td>
<td><img vspace = "2" id="line2" border="0" src="line_divider.gif" width="100%" height="2"></td>
</tr>
<tr>
<td width="18" height="17" onClick="cancelthis();" align="center" bgcolor="#D8D7DB" style="font-size: 12pt;color:red;"><strong>×</strong></td>
<td height="17" onClick="cancelthis();" onMouseOver="scolor(this);" onMouseOut="rcolor(this);"><b> 取消</b></td>
</tr>
</table>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -