secure photos

D

Dave B

Easy to do, but won't stop people from downloading your photos, only way to
keep that from happening is to not put them up to begin with.
 
S

Seraph

Enter this script into your page:

<script language=JavaScript>
<!--

//Disable right mouse click Script

var message="Your Copyright Text Here.";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
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(message);return false")

// -->
</script>
</td></tr></table>

....that will stop all right-clicking on your page.
 
K

Kevin Spencer

On second thought, DON'T.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.
 
B

Bob Lehmann

...that will stop all right-clicking on your page.

Well, no it won't.

For one, I don't think there is such a thing as a roght-click on a Mac.
Second, FireFox has an option to ignore such amatuerish attempts.

Bob Lehmann
 
R

Ronx

You will have to take away their keyboards, too. Don't need a mouse
to grab images from websites.
 
Top