Disabling Right Click
4 posters
Page 1 of 1
Disabling Right Click
I found the following code and I wanted to use it for my forum:
I tryed putting it on my forum, but it did not work. Will this code work for my forum and if so where the heck would I put it?
- RFM
- Code:
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="TYPE 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></font></p><p><script language="JavaScript"></script></p>
I tryed putting it on my forum, but it did not work. Will this code work for my forum and if so where the heck would I put it?
- RFM
redfurrymonster84- Forumember
- Posts : 99
Reputation : 0
Location : Indiana
Re: Disabling Right Click
This script you showed is really long...
On the French board, I found an anti-right-click script which is much shorter and I tested it on my test forum. It works perfectly!
Here is the code :
You put this code in Admin Panel > General Admin > Configuration > Site description. (there is enough place for my code)
But beware, the anti-right-click can be easily bypassed by people who have good knowledge in computers.
On the French board, I found an anti-right-click script which is much shorter and I tested it on my test forum. It works perfectly!
Here is the code :
- Code:
<script language=JavaScript1.2> function ejs_nodroit() { alert('Right-click is forbidden !!!'); return(false); } document.oncontextmenu = ejs_nodroit; </script>
You put this code in Admin Panel > General Admin > Configuration > Site description. (there is enough place for my code)
But beware, the anti-right-click can be easily bypassed by people who have good knowledge in computers.
Re: Disabling Right Click
Thank you! Yes, this code is much shorter
redfurrymonster84- Forumember
- Posts : 99
Reputation : 0
Location : Indiana
Re: Disabling Right Click
The code works for my forum, but is there a way to limit it to only work on the homepage? (where all the forum categories are?)
My issue is that another forumotion forum stole my category images that my members and I created. Take a look at my forum:
clover.top-forum.net/forum.htm
and now check out his:
http://blaziken33.pokemonlegend.org/forum.htm
He didn't steal ALL of them, but he still stole some....anything I can do?
My issue is that another forumotion forum stole my category images that my members and I created. Take a look at my forum:
clover.top-forum.net/forum.htm
and now check out his:
http://blaziken33.pokemonlegend.org/forum.htm
He didn't steal ALL of them, but he still stole some....anything I can do?
Re: Disabling Right Click
you shouldn't worry about it his forum dose not seem to be active nor any good so competing with him is no threat at all for you,your ok i mean compare your amount of members to his lol
Re: Disabling Right Click
It's not about the competition...it's about the fact that they stole the icons my members and I made.
Regardless, they took them down =_= So yaayyy!
Regardless, they took them down =_= So yaayyy!
Similar topics
» Disabling Right Click
» Disabling right click?
» Code for disabling right click
» Right Click Forbidden Script- Disabling Problem
» I want this music to appear when they click "right-click"
» Disabling right click?
» Code for disabling right click
» Right Click Forbidden Script- Disabling Problem
» I want this music to appear when they click "right-click"
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum