To anyone out there - How to Disable right click
Hi I was wondering how I would disable the right click feature in regards to photos.
It used to be easy to do but I'm finding Xara Web Design Premium won't allow me to do it
or it asks that I paste code but it doesn't tell me where to paste that code.
Other web programs I've used allowed me to click a box and it was done.
I need help with this and please be specific with the instructions.
Lady J 223
1 Attachment(s)
Re: To anyone out there - How to Disable right click
To disable right click on a single page or the whole website you can use the same code, but in different places. I can't remember the source or I would link to the author.
Individual pages: Click 'Link Properties' > 'Page' > 'HTML Code (body) and paste the code.
Whole website: Click 'Link Properties' > 'Website' > 'HTML Code (body) and paste the code.
Attachment 123903
Code:
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Geek Site.in
var message="Function Disabled!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!docume nt.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
Re: To anyone out there - How to Disable right click
THANK YOU to the individual that sent me the code and where to insert it. Code works wonderfully.
Re: To anyone out there - How to Disable right click
Quote:
Originally Posted by
Lady J 223
THANK YOU to the individual that sent me the code and where to insert it. Code works wonderfully.
Don't imagine for a moment that that will stop everyone from downloading images from your web pages.
Re: To anyone out there - How to Disable right click
Quote:
Originally Posted by
pauland
Don't imagine for a moment that that will stop everyone from downloading images from your web pages.
No, it won't stop the determined, but it does stop the casual visitor which would be the vast majority.
Re: To anyone out there - How to Disable right click
Quote:
Originally Posted by
Chris M
No, it won't stop the determined, but it does stop the casual visitor which would be the vast majority.
A lot of people think it gives absolute security.
In practice most people want to protect images people don't want anyway.
Most people seem to think they will lose money if the image is copied, but that's highly unlikely.
If you don't want an image copied, add a watermark/reduce the image resolution/reduce the image quality etc.
Ask yourself why copying is an issue and be sure that it is.
Re: To anyone out there - How to Disable right click
Quote:
Originally Posted by
pauland
A lot of people think it gives absolute security.
In practice most people want to protect images people don't want anyway.
Most people seem to think they will lose money if the image is copied, but that's highly unlikely.
If you don't want an image copied, add a watermark/reduce the image resolution/reduce the image quality etc.
Ask yourself why copying is an issue and be sure that it is.
Perfectly true, and very good advice.