Script anti copie

Ce script permet de bloquer  les touches CTRL+A et le click droit d'une page .
Ce script est à insèrer entre les balises <body> et </body> de votre document XHTML .

<script language="Javascript">
if (top.frames.length!=0) top.location=self.document.location;
</script>
<script language="Javascript">
window.moveTo(0,0);
if (document.all) {
window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers) {
if (window.outerHeight<screen.availHeight||window.outerWidth<screen.availWidth){
window.outerHeight = screen.availHeight;
window.outerWidth = screen.availWidth;
}
}
</script>
<script language="Javascript">
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {
if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if ( innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); </script> <script language="Javascript"> function hidestatus(){ window.status='' return true } if (document.layers) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) document.onmouseover=hidestatus document.onmouseout=hidestatus   function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } </script> <script language="Javascript"> <!-- //specify whether contents should be auto copied to clipboard (memory) //Applies only to IE 4+ var copytoclip=1 function HighlightAll(theField) { var tempval=eval("document."+theField) tempval.focus() tempval.select() if (document.all&&copytoclip==1){ therange=tempval.createTextRange() therange.execCommand("Copy") window.status="Contents highlighted and copied to clipboard!" setTimeout("window.status=''",1800) } } //--> </script> <script language="Javascript"> /*
desactiver Ctrl Alt - disable Ctrl Alt
*/
function alert_keycode(){ if (event.keyCode == 17 || event.keyCode == 18)
{
alert("c'est pas mal..non...") } } document.onkeydown=alert_keycode </script> <script language="Javascript"> curPage=1; document.oncontextmenu = function(){return false} if(document.layers) { window.captureEvents(Event.MOUSEDOWN); window.onmousedown = function(e){ if(e.target==document)return false; } } else { document.onmousedown = function(){return false} } //--> </script>
Voir/déposer un commentaire (0) | Signaler un problème