View Full Version : Disable coding for content and Image..
  
ericpaul
04-29-2009, 06:15 AM
Hi Friends,
i got a simple Query but need to make sure with you about the right click disable code so which types code/script are using to disable right click ?
Need to set secure our website with JavaScript for NO RIGHT CLICK" in content and Images?
your answers will be helpful.
Thanks,
Eric
dhvanil
04-29-2009, 06:21 AM
friend
please check this url, it may be help you to check the disable code
hypergurl.com/norightclick.html
Thanks
Dhvanil
MODERATOR VERIFIED _ URL IS SAFE
happy
04-30-2009, 06:57 AM
NO RIGHT CLICK for Source
<script language="JavaScript1.1"> 
<!-- var debug = true; function 
right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which 
== 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' 
&& (event.button == 2 || event.button == 3)) { alert('This Page is fully 
protected!'); return false; } return true; } document.onmousedown=right; if (document.layers) 
window.captureEvents(Event.MOUSEDOWN); window.onmousedown=right; //--></script>
NO RIGHT CLICK for Images
<script language="JavaScript"> 
<!-- var popup="Sorry, right-click 
is disabled.\n\nThis Site Copyright ©2000"; function noway(go) { if 
(document.all) { if (event.button == 2) { alert(popup); return false; } } if (document.layers) 
{ if (go.which == 3) { alert(popup); return false; } } } if (document.layers) 
{ document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=noway; // --> 
</script>
 
Powered by vBulletin® Version 4.2.4 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.