The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Can't copy images

View previous topic View next topic Go down

Solved Can't copy images

Post by Noctis on June 10th 2011, 8:27 pm

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.

Noctis
Forumember

Posts : 98
Reputation : 0
Language : English

Back to top Go down

Solved Re: Can't copy images

Post by Base on June 10th 2011, 9:06 pm

Hi, you can try adding this to your homepage message:

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. Smile

Base
Forumaster

Male Posts : 10386
Reputation : 1687
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

Solved Re: Can't copy images

Post by Noctis on June 10th 2011, 10:00 pm

WOW It worked! Thank you!

Noctis
Forumember

Posts : 98
Reputation : 0
Language : English

Back to top Go down

Solved Re: Can't copy images

Post by Nera. on June 10th 2011, 10:39 pm

Solved => Locked

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum