zoukankan      html  css  js  c++  java
  • 封右键

    <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>
  • 相关阅读:
    std::auto_ptr
    make_pair
    _stdcall与_cdecl(了解)
    函数名与函数指针(了解)
    空指针与野指针
    std::bind(二)
    C++ map 映照容器
    sql find duplicate
    数量
    sort sign numeric
  • 原文地址:https://www.cnblogs.com/goodspeed/p/277962.html
Copyright © 2011-2022 走看看