For educational purposes only.
this is not a security code
browser compatibility: IE6, IE7, FF2
Credits: google
function nrcIE() {
if (document.all) {
return false;
}
}
function nrcNS(e) {
if (document.layers || (document.getElementById && ! document.all)) {
if (e.which == 2 || e.which == 3) {
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = nrcNS;
}else {
document.onmouseup = nrcNS;
document.oncontextmenu = nrcIE;
}
document.oncontextmenu = new Function("return false");apply thru external js file 
Last edited by feruzz (2008-02-03 07:40:21)
^ Nice trick 

wow nice trick! and keep up the goodwork btw!
![]()
-Offline- |

this is cool 
thanks for sharing 
-Offline- |

thanks for sharing feruzz! 


-Offline- |

WOW!! nice


thanks for sharing this ![]()
-Offline- |

tnx for sharing dis code.. coz my silent no right click has been deleted
heheheh 
-Offline- |

nice script
tnx 4 sharing!
-Offline- |
i can't get it...... can you show me how????
-Offline- |
feruzz wrote:
Code:
function nrcIE() {if (document.all) {return false; } } function nrcNS(e) {if (document.layers || (document.getElementById && ! document.all)) {if (e.which == 2 || e.which == 3) {return false; } } } if (document.layers) {document.captureEvents(Event.MOUSEDOWN); document.onmousedown = nrcNS; } else {document.onmouseup = nrcNS; document.oncontextmenu = nrcIE; } document.oncontextmenu = new Function("return false");apply thru external js file
wat is JS file??
-Offline- |
its so hard
-Offline- |
feruzz wrote:
Code:
function nrcIE() {if (document.all) {return false; } } function nrcNS(e) {if (document.layers || (document.getElementById && ! document.all)) {if (e.which == 2 || e.which == 3) {return false; } } } if (document.layers) {document.captureEvents(Event.MOUSEDOWN); document.onmousedown = nrcNS; } else {document.onmouseup = nrcNS; document.oncontextmenu = nrcIE; } document.oncontextmenu = new Function("return false");apply thru external js file
hi... what is the external js file?
-Offline- |

js file learn the proceedure here --> http://friendstertalk.com/t2044-save-.j…file..html
and i suggest read the sticky thread --> ![]()
-Offline- |

lol.. i figured out this silent no right click is only for IE and FF...
might add this also for Opera and Safari..
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;Last edited by xavierkym (2007-08-25 00:16:55)


i love it!! its working., thanks

-Offline- |

thx for sharing
-Offline- |

i just want to know what is the purpose of this code?? 
-Offline- |

its working..hahah..nice trick..tnx for sharing.. 
-Offline- |
is this code can be use in friendster??
-Offline- |