方法一:

<script language="javascript" type="text/javascript" src="https://code.jquery.com/jquery-1.7.1.min.js"></script>
<script>
    $(document).ready(function(){
    $('#video').bind('contextmenu',function() { return false; });
    });
</script>
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.

  

方法二:

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script type="text/javascript">
var myVideo=document.getElementById("video1");
$('#video1').bind('contextmenu',function() { return false; });
function playPause()
{ 
if (myVideo.paused) 
  myVideo.play(); 
else 
  myVideo.pause(); 
} 

function makeBig()
{ 
myVideo.width=560; 
} 

function makeSmall()
{ 
myVideo.width=320; 
} 

function makeNormal()
{ 
myVideo.width=420; 
} 
</script>
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.

 

作者:Alone°李道长ご