turn off right mouse click

  • Thread starter disabling the right mouse click function
  • Start date
D

disabling the right mouse click function

i wish to turn off right click on my website so no one can copy and steal my
graphics or my pictures i have seen it on other websites where the right
click button on the mouse has been disabled anyone know how it is done please
 
D

DavidF

I will paste a script below, but hope you realize that disabling right click
will not prevent someone from 'stealing' your photos. The have a copy in
there internet temp folders after loading your page. If you post it on the
web, it can be copied. With that said, here is some script (and I found it
by googling for it, by the way):


<script language=JavaScript>
<!--

//Disable right click script III- By Renigade ([email protected])
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>

DavidF

"disabling the right mouse click function" <disabling the right mouse click
(e-mail address removed)> wrote in message
i wish to turn off right click on my website so no one can copy and steal my
graphics or my pictures i have seen it on other websites where the right
click button on the mouse has been disabled anyone know how it is done
please
 
D

DavidF

Oh...and by the way, if you are using Pub 2003, then the right click option
is already disabled by default.

DavidF

"disabling the right mouse click function" <disabling the right mouse click
(e-mail address removed)> wrote in message
i wish to turn off right click on my website so no one can copy and steal my
graphics or my pictures i have seen it on other websites where the right
click button on the mouse has been disabled anyone know how it is done
please
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top