How do I Disable the Right Click on the RealOne plugin ?

  • Sohaib
  • Proficient
  • Proficient
  • User avatar
  • Posts: 327
  • Loc: Las Vegas

Post 3+ Months Ago

I want to Disable the Right Click on the RealOne plugin on my web page how do i do that ??

I mean>>>I have the Plugin on My webpage and it plays music, but how do I Disable right Click on the Plugin ? because I dont want anyone to copy the music from Plugin and use it as stream...
Please HELP
I hope u understand what i mean

Thanx
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

titled fixed
  • Sohaib
  • Proficient
  • Proficient
  • User avatar
  • Posts: 327
  • Loc: Las Vegas

Post 3+ Months Ago

Thanx for Fixing the title but the Answer :lol: ?
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Posts: 1098

Post 3+ Months Ago

This will disable right mouse clicks on your webpage. However, it will disable them on the whole page, not just RP. Also... I don't know if it will disable rightclicks on embedded objects, like a real player object or flash or that sort of thing. Those bits are in a different part of the DOM. You might be able to plant an invisible layer over it that disables right clicks, though it might disable left clicks too, which would be bad... =]
.c

Code: [ Select ]
<script LANGUAGE="JavaScript" TYPE="text/javascript">
 function right_click(tmp){
     alert("disabled");
     return false;
 } 

 if(document.layers){window.captureEvents(Event.MOUSEDOWN);}
 if(document.layers){window.captureEvents(Event.MOUSEUP);}
 document.onmousedown = right_click;
 document.onmouseup = right_click;
 window.onmousedown = right_click;
 window.onmouseup = right_click;
</script>
  1. <script LANGUAGE="JavaScript" TYPE="text/javascript">
  2.  function right_click(tmp){
  3.      alert("disabled");
  4.      return false;
  5.  } 
  6.  if(document.layers){window.captureEvents(Event.MOUSEDOWN);}
  7.  if(document.layers){window.captureEvents(Event.MOUSEUP);}
  8.  document.onmousedown = right_click;
  9.  document.onmouseup = right_click;
  10.  window.onmousedown = right_click;
  11.  window.onmouseup = right_click;
  12. </script>
  • Sohaib
  • Proficient
  • Proficient
  • User avatar
  • Posts: 327
  • Loc: Las Vegas

Post 3+ Months Ago

Thank You
I appriciate your help
Thank ALot

..........SohaibG..........

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 75 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.