Posted By:
JenniferHello all -- haven't checked the board in a LONG time, but this thread in particular caught my eye. Just within the last few days, we decided to start adding html code to all of our eBay listings which makes it impossible for someone to right-click-save the listing photos. There may be a way to get around this little roadblock -- for the very determined scam artist -- but at least it forces them to work harder to steal photo scans.
We found this code at JavaScript Source -- the way to insert the code is simple -- in the item description section, click on "HTML mode", and at the very top of the description section, copy and paste the following string of html code. (We've found it easier to complete the item description in its entirety FIRST, then switch to HTML mode and insert the code).
<HEAD>
<SCRIPT LANGUAGE="JavaScript1.1">
<!-- Original: Martin Webb (martin@irt.org) -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
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("No right-clicking!");
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>
</HEAD>
Two things to point out -- you can change the message someone will receive in the pop up window when they try to right-click. (The code above reads "No right-clicking!" but you can obviously change it to whatever you want -- for example, "Get your #$*(#$ hands off my photo scan, loser.") Also, if you should happen to revise an item again, this html code will, for whatever reason, disappear altogether, and you'll have to remember to reinsert it before saving the listing again.