How do I disable right click option on images to prevent users from claiming other players creations as their own?
Last edited by Dr.Kran on January 13th 2016, 6:46 am; edited 1 time in total
Yes this code works sort of the problem is if you turn java codes off in your browser you can get passed this systemYoshiGM wrote:Hello @Dr.Kran
There is a tutorial in the support forum from long years ago: https://help.forumotion.com/t50779-script-to-disable-the-right-click
Try it
var message="YOUR MESSAGE GOES 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")
Please refrain from moderating members, this is a staff member's job.Clashmune wrote:Also, you have a few topics open in-progress, if they are solved can you please message in the topic and mark it solved so that people searching in the archives can recieve help by seeing the solution?
YoshiGM wrote:Anyways,
Google is your father.. You can simply search a code to block right click using javascript.