
Originally Posted by
sandysewin I came across some code which I put into my EBay auctions. It works like a charm. When people try to right-click they get an error sound and a message box, "Photos Property of SandySewin!"
I'm not sure if it matters where you insert it in BV. I know some basic html but I'm very new to this website building stuff. Hope someone finds it helpful.
The code below was given to me to share. Be sure to insert your own info in the RED area.
<SCRIPT LANGUAGE="JavaScript1.1">
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("Photos Property of Sandysewin!");
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
// End -->
</script>