Forum Moderators: not2easy
[billybear4kids.com...]
[codelifter.com...]
Style Sheet:
#pic-1{background-image: url(/images/pic-1.jpg); width: 150px; height: 200px;}
HTML:
<div id="pic-1"></div>
Notes: The image will still be vulnerable to savvy users, but at least it keeps the chumps out. Some older browsers will not render the images because of their lack of support for background-image.
I ended up with a couple of people emailing me the images on my page, and telling me how my right-click script only worked on IE.
Mildly irritating.
I dumped the script and assumed the fact that anything I placed on the Internet may be nabbed by anyone who really wants it.
I sometimes find one of my images in a really busy forum and I'll bet 9 out of ten of the forum users have no clue what to do if they right click and can't get the image.
On the other hand, it's a real pain and as I'm typing this I just realized that in my Opera browser I can save the background image too so why even bother.
I think Birdman had the right idea when he said use as bg image. Just make it the cell background of a 1x1 table. Although this may get a bit annoying.
Still, the no right click does pester off most thiefs. I just highlight the image, and goto file>properties and see what the image url is.
One of my bookmarklet/favlets opens a new window and lists all the images including their urls, sizes etc. Bottom line, if someone wants an image, they can get it. If you see it in your browser - you already have it. :) So why annoy your visitors?
LisaB
left click on image and HOLD it,then right click while still holding left mouse button and menu will appear.works with most sites i visited and it is easy.
go to :
[billybear4kids.com...]
and try.
however,this one is tough,cant trick it with above trick:
[river-phoenix.org...]
var ClickMessage="No options available.";
function clickIE4(){
if (event.button==2){
alert(ClickMessage);
return false;
}
}
function clickNS4(e){
if (document.layers¦¦document.getElementById&&!document.all){
if (e.which==2¦¦e.which==3){
alert(ClickMessage);
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(ClickMessage);return false")
Visited using Opera 7 - full right click menu available.
Is there a way of disabling the "right-click" options that appear when mousing over an object i.e. a .jpg image...
It looks like you are referring to the MSIE 6 Image Toolbar which can be disabled by adding the following meta element:
<meta http-equiv="imagetoolbar" content="false">
Please see: [microsoft.com...]
But if it gets displayed on screen then it can always be captured. This is as easy as pressing Alt+PrintScreen to copy the entire window to your clipboard.
Instead..
(edit)Actually, if you do a combination of those two sites then its pretty secure since a lot of the images on the other site were links the image does not appear by dragging it to the toolbar). Who wants to have all their images as links though?
If they have body.onload context menu=false
then dump your browser cache, and reload the page and copy it out of your cache. or do "save page as"
The only image that is copy protection fool proof, is the ones that get embedded into a java applet. But of course you can do a screen capture on that as well.
THERE IS NO WAY TO REALLY PROTECT STUFF ON THE NET
U see it - u've got it.
Print screen nearly always works
However, u can deter non-persistant theifs using the scripts mentioned although as other people have said this gets annoying with the 'open in new window' function difficult to get at.