How do I disable the right click and copy of my photographs?
Thanks for everyones help in getting my site published!
Lindsay
www.snippetsgrooming.co.uk
![]()
How do I disable the right click and copy of my photographs?
Thanks for everyones help in getting my site published!
Lindsay
www.snippetsgrooming.co.uk
![]()
<script language="JavaScript1.2">
var clickmessage="Right click disabled on images!"
function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}
function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}
if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
</script>
place in the end of page
this will stop most people, however there are ways around it, nothing 100%, what you should do is place you name on each photo, using a photo edit program.
www.bluevodaexchangelink.com
BluevodaExchangeLink Help Center
Bluevodaexchangelink Forum
The only place for bluevoda site to be linked with!
You gave that in Java. Can you give it in HTML?
just copy and place in the "end of page" in page html optionOriginally Posted by bumbleb
www.bluevodaexchangelink.com
BluevodaExchangeLink Help Center
Bluevodaexchangelink Forum
The only place for bluevoda site to be linked with!
There are currently 1 users browsing this thread. (0 members and 1 guests)