News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

No Right click code.

Started by Avcomdesign, February 07, 2006, 11:15:41 AM

Previous topic - Next topic

Avcomdesign

I have the code for no right click on my board.....what and where would be the best place to put this to be in effect?  Thanks for any help on this.

AV

Avcomdesign

I found it and if anyone wants a good code for thier board its right here.

Description: A "silent" version of the popular No Right Click script that doesn't' alert a message. To alert or not to alert that is the question.


<script language=JavaScript>
<!--

//Disable right click script III- By Renigade ([email protected])
//For full source code, visit hxxp:www.dynamicdrive.com [nonactive]

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>

Advertisement: