He should know that it can be circumvented in many ways and is a waste of time. Just Google no right click JavaScript and you'll get plenty of links.
CoffeeCup... Yeah, they are the best!
Low resolution pictures help. They will be too poor a quality to print.
If you really want right-click disabled, this script will only prevent right-clicking over images.
<script type="text/javascript">
document.oncontextmenu = suppress_imageClick;
function suppress_imageClick(sic) {
if (!sic) var sic = window.event;
var sicTarget = (window.event) ? sic.srcElement : sic.target;
if (sicTarget.tagName == "IMG") {
return false;
}
}
</script>
document.oncontextmenu = suppress_imageClick;
function suppress_imageClick(sic) {
if (!sic) var sic = window.event;
var sicTarget = (window.event) ? sic.srcElement : sic.target;
if (sicTarget.tagName == "IMG") {
return false;
}
}
</script>
Thats great thanks Cary
Wendy,
In addition to the suggestions provided, whichever you follow, why not set up a login id and password so that if people who want to view your work have to email you first to get a log in id and password from you? You can set it to expire after a few days. You can have them indicate in their email to you what their purpose is for looking at your work and based on what they email you, you can decide whether or not you want to give them access. It puts you in control.
Hope this helps.
Vito
In addition to the suggestions provided, whichever you follow, why not set up a login id and password so that if people who want to view your work have to email you first to get a log in id and password from you? You can set it to expire after a few days. You can have them indicate in their email to you what their purpose is for looking at your work and based on what they email you, you can decide whether or not you want to give them access. It puts you in control.
Hope this helps.
Vito
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.