// anti clic-droit

//For full source code, visit http://www.dynamicdrive.com
var message="Copyright © 2010 Verlina.fr - Tous droits réservés.";

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")



// anti copie du texte --> desactive Ctrl Alt - disable Ctrl Alt
// Si pour Firefox aussi, Alors 
// voir : http://www.geekpedia.com/tutorial138_Get-key-press-event-using-JavaScript.html
// ou voir : http://www.commentcamarche.net/faq/18760-javascript-manipulation-des-controles-clavier
//function alert_keycode(){ if (event.keyCode == 17 || event.keyCode == 18) { alert(message) } } document.onkeydown=alert_keycode;
// ou :
//document.onkeydown = function(e) {e=e||window.event; if (e.keyCode == 78 && e.ctrlKey) {return false;}}



