CSONE OFICIAL FORUM
Parteneri EMAG

Cu Acest Script Nu Poate Nimeni Sa Copieze Nimic De Pe FORUM

In jos

Cu Acest Script Nu Poate Nimeni Sa Copieze Nimic De Pe FORUM

Mesaj  CSONE la data de Vin Feb 22, 2013 12:00 am

Cod:
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">


<!-- TWO STEPS TO INSTALL NO RIGHT CLICK:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<script LANGUAGE="Javascript1.1">
<!-- Original: Martin Webb -->

<!-- This script and many more are available free online at -->
<!-- The Javascript Source!! -->

<!-- Begin
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)) {
alert("Sorry, you do not have permission to right click.");
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;
// End -->
</script>
</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>




<!-- script Size: 1.57 KB -->
<BODY onselectstart="return false">
<BODY ondragstart="return false">
<BODY oncontextmenu="return false">

<HEAD>
<script LANGUAGE="Javascript1.2">
var ns = (document.layers)? true:false;
var ie = (document.all)? true:false;
if (ns) document.captureEvents(Event.MOUSEDOWN || Event.CLICK);
document.onclick = sourcecodeprotect;
document.onmousedown = sourcecodeprotect;

// ***********************************************************
function sourcecodeprotect(e) {
if (ns&&(e.which==3)) return false;
else if (ie&&(window.event.button==2)) alert("Source code protected");
else return true;
}

//***********************************************************
function cleanup() {
if (ns) document.releaseEvents(Event.MOUSEDOWN || Event.CLICK);
}

</script>
</HEAD>
<BODY onunload="cleanup()">

</BODY>

<script language="Javascript1.2">
<!--
var mymessage = "И.";
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
}
function rtclickcheck(keyp){
if (document.layers && keyp.which != 1) {
alert(mymessage);
return false;
}
if (document.all && event.button != 1) {
alert(mymessage);
return false;
}
}
document.onmousedown = rtclickcheck
//-->
</script>
<script LANGUAGE="Javascript">
document.ondragstart = ops;
document.onselectstart = ops;
document.oncontextmenu = ops;

function ops()
{
return false;
}

</script>

"<script>document.write("text")

function doSomething(e) {
var targ;
if (!e) var e = window.event;
if (e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
if (targ.nodeType == 3) // defeat Safari bug
targ = targ.parentNode;
}

<script LANGUAGE="Javascript">
document.ondragstart = test;

document.onselectstart = test;

document.oncontextmenu = test;

function test() {
return false
}
</script>
avatar
CSONE
Admin

Mesaje : 89
Puncte CSONE : 278
Data de inscriere : 04/01/2013

Vezi profilul utilizatorului http://csone.bossforum.net

Sus In jos

Sus


 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum