⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 真正的屏蔽右键.htm

📁 javascript编程的组件
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0046)http://fason.nease.net/code/js/mouse/right.htm -->
<HTML><HEAD><TITLE>真正的屏蔽右键</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<META content=FrontPage.Editor.Document name=ProgId></HEAD>
<BODY>
<SCRIPT language=JavaScript> <!--   if (window.Event)    document.captureEvents(Event.MOUSEUP);    function nocontextmenu()  {  event.cancelBubble = true  event.returnValue = false;    return false; }   function norightclick(e)  {  if (window.Event)   {   if (e.which == 2 || e.which == 3)    return false;  }  else   if (event.button == 2 || event.button == 3)   {    event.cancelBubble = true    event.returnValue = false;    return false;   }   }   document.oncontextmenu = nocontextmenu;  // for IE5+ document.onmousedown = norightclick;  // for all others //--> </SCRIPT>

<DIV align=center>
<CENTER>
<TABLE style="FONT-SIZE: 12px; COLOR: #000000" borderColor=#000000 cellSpacing=0 
borderColorDark=#ffffff cellPadding=0 width="90%" borderColorLight=#000000 
border=1>
  <TBODY>
  <TR>
    <TD width="100%">&lt;script 
      language="JavaScript"&gt;&nbsp;<BR>&lt;!--&nbsp;<BR><BR>if 
      (window.Event)&nbsp;<BR>document.captureEvents(Event.MOUSEUP);&nbsp;<BR><BR>function 
      nocontextmenu()&nbsp;<BR>{&nbsp;<BR>event.cancelBubble = 
      true&nbsp;<BR>event.returnValue = false;&nbsp;<BR><BR>return 
      false;&nbsp;<BR>}&nbsp;<BR><BR>function 
      norightclick(e)&nbsp;<BR>{&nbsp;<BR>if 
      (window.Event)&nbsp;<BR>{&nbsp;<BR>if (e.which == 2 || e.which == 
      3)&nbsp;<BR>return false;&nbsp;<BR>}&nbsp;<BR>else&nbsp;<BR>if 
      (event.button == 2 || event.button == 
      3)&nbsp;<BR>{&nbsp;<BR>event.cancelBubble = 
      true&nbsp;<BR>event.returnValue = false;&nbsp;<BR>return 
      false;&nbsp;<BR>}&nbsp;<BR><BR>}&nbsp;<BR><BR>document.oncontextmenu = 
      nocontextmenu; // for IE5+&nbsp;<BR>document.onmousedown = norightclick; 
      // for all 
others&nbsp;<BR>//--&gt;&nbsp;<BR>&lt;/script&gt;</TD></TR></TBODY></TABLE></CENTER></DIV>
<P align=right><A style="TEXT-DECORATION: none" 
href="http://fason.nease.net/">【阿信的小天地】</A></P></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -