Can't copy images
3 posters
Page 1 of 1
Can't copy images
So I was on my friends site and I notice that you can't copy images.
The link is found here
http://nrpgm.forum-motion.com/forum
If you notice, you can't right click, which is helpful because every time I turn around, someone is taking my pictures. Anyway, how do I get this feature on my forum?
If you can, I would only like this feature to work on pictures and not the whole forum. That way, people can still copy and past.
The script he has on his site wont let the right click work at all. And that is with text and images.
The link is found here
http://nrpgm.forum-motion.com/forum
If you notice, you can't right click, which is helpful because every time I turn around, someone is taking my pictures. Anyway, how do I get this feature on my forum?
If you can, I would only like this feature to work on pictures and not the whole forum. That way, people can still copy and past.
The script he has on his site wont let the right click work at all. And that is with text and images.
Noctis- Forumember
- Posts : 98
Reputation : 0
Language : English
Re: Can't copy images
Hi, you can try adding this to your homepage message:
Credits to DynamicDrive for providing us with the code.
- Code:
<script language="JavaScript1.2">
/*
Disable right click script II (on images)- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/
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>
Credits to DynamicDrive for providing us with the code.
Re: Can't copy images
WOW It worked! Thank you!
Noctis- Forumember
- Posts : 98
Reputation : 0
Language : English
Re: Can't copy images
Solved => Locked
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum