Skip to main content

Problem with Protect Images coding!

Apparently there's a problem with the 'protect images' coding. When you right click, you get the popup saying "image protected..." but as soon as you click "OK" on the popup, you get the popup menu to save the image!

try it - http://cgi.ebay.com/Landstroms-Black-Hills-Gold-Mens-Di...Z92845QQcmdZViewItem

Edit to add - if you scroll the page with the mouse before right clicking, then you dont get the popup menu for saving image. If you dont scroll the page with mouse before right-clicking you get the popup menu for saving image.

Sure, there's ways around the disabled right-click, but to go ahead and give the person the popup menu makes the whole disable right-click pointless.

Frown Frown Frown Frown Frown


here's some javascript code that appears to work better. From http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=41

<SCRIPT language="JavaScript">
<!--
var message="Thank you for visiting my site.";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</SCRIPT>


Note: the page that this code is from also discusses many other techniques for protecting your images.
Last edited {1}
Original Post
Copyright © 1999-2018 Auctiva.com. All rights reserved.
×
×
×
×