87,907
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
<!--
body, td, th {
font-size: 12px;
}
html, body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
width:180px;
height:100%;
background-color:#4180b6;
SCROLLBAR-FACE-COLOR: #c6d3eb;
SCROLLBAR-HIGHLIGHT-COLOR: #ffffff;
SCROLLBAR-SHADOW-COLOR: #395186;
SCROLLBAR-3DLIGHT-COLOR: #395186;
SCROLLBAR-ARROW-COLOR: #330000;
SCROLLBAR-TRACK-COLOR: #e2e7f3;
SCROLLBAR-DARKSHADOW-COLOR: #ffffff;
overflow-x:hidden;
}
#RightKey {
position:absolute;
display:none;
left:41px;
top:152px;
width:80px;
z-index:999;
}
div.RightKeyCss {
position: absolute;
filter: Alpha(Opacity='95');
display:inline;
background-color: #D4D0C8;
border: 2px outset #FFFFFF;
width: 0;
height: 0;
padding:1
}
-->
</style>
<script>
var rce; //====================储存右击时的对象
function RightKeyDown(event){
event = event || window.event;
rce = event.target || event.srcElement;
var x;
var y;
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
x = (isNav) ? E.pageX : event.clientX;
y = (isNav) ? E.pageY : event.clientY;
x=x+4;
y=y-2;
if((document.body.clientWidth-80-x)<0){x=x-90;}
document.getElementById("RightKey").style.display='inline';
document.getElementById("RightKey").style.left=x;
document.getElementById("RightKey").style.top=y;
}
function RightKeyhide(){
document.getElementById('RightKey').style.display='none';
}
opurl = function(){
if(rce.href){
window.location.href = rce.href;
}
}
</script>
</head>
<body oncontextmenu="RightKeyDown();return false;" onclick="RightKeyhide();">
<div id="RightKey" class="RightKeyCss" onclick="this.style.display='none';">
<table width="100%" border="0" cellspacing="1" cellpadding="1" style="line-height:120%">
<tr onmouseover="this.style.backgroundColor='#000080';this.style.color='#ffffff';this.style.cursor='default';" onmouseout="this.style.backgroundColor='#D4D0C8';this.style.color='#000000';">
<td height="18" valign="middle" onclick="opurl()" style="padding-left:10px; padding-top:2px;">打开</td>
</tr>
<tr>
<td height="1px" style="background-color:#999;"></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#000080';this.style.color='#ffffff';this.style.cursor='default';" onmouseout="this.style.backgroundColor='#D4D0C8';this.style.color='#000000';">
<td height="18" valign="middle" onclick="javascript:location.reload();" style="padding-left:10px; padding-top:4px;">刷新</td>
</tr>
<tr>
<td height="1px" style="background-color:#999;"></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#000080';this.style.color='#ffffff';this.style.cursor='default';" onmouseout="this.style.backgroundColor='#D4D0C8';this.style.color='#000000';">
<td height="18" valign="middle" style="padding-left:10px; padding-top:4px;">复制</td>
</tr>
<tr onmouseover="this.style.backgroundColor='#000080';this.style.color='#ffffff';this.style.cursor='default';" onmouseout="this.style.backgroundColor='#D4D0C8';this.style.color='#000000';">
<td height="18" valign="middle" style="padding-left:10px; padding-top:1px;padding-bottom:1px;">粘贴</td>
</tr>
<tr>
<td height="1px" style="background-color:#999;"></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#000080';this.style.color='#ffffff';this.style.cursor='default';" onmouseout="this.style.backgroundColor='#D4D0C8';this.style.color='#000000';">
<td height="18" valign="middle" style="padding-left:10px; padding-top:4px;padding-bottom:1px;">属性</td>
</tr>
</table>
<!--
<li><a href="javascript:location.reload();">刷新</a></li>
<li><a href="#"> 复制 </a></li>
<li><a href="#"> 粘贴 </a></li>
//-->
</div>
<h1><p align="center" style="line-height:300px;"><a href="http://www.csdn.net/">csdn</a></p></h1>
</body>
</html>