| Forums > Tips & Tricks > "I DON'T WANT DISABLE RIGHT CLICK." (3 replies)
|
|
|
hey. yea. disable right click is really useless.
but i got that in the template im using.
can anyone tell me what's the code that i have to delete?
i'll appreciate alot if anyone could tell me.
thanks,
JASMINE
|
| |
|
| |
|
| |
Well there's no code to delete it because you just need to delete as in press BACKSPACE.
Here's what u need to delete: [ should look something like this . I cant put the exact code here because it just wont show.]
[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="Function Disabled!";
-///////////////////////////////////
-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]
|
| |
| |
|
| |
And you would usually find this in between the [head]somewhere here[/head]
note: the [ and ] are actually respectively
|
| |
| |
|
| |
yea i meant backspace. sorry. oh okay got it! thanks alot.
|
| Subscribe To This Thread: RSS 2.0 or Atom (?) |
| This thread has been locked, and no new replies can be posted. |