PDA

Orijinalini görmek için tıklayınız : VBCODE | Script Ctrl + c Koruması


Derbeder
29-06-2019, 10:56
3.8.X değil tüm sürümlerde kullanabilirsiniz.
Footer şablonunu açın en altına ekleyin. Tabi bu misafirlere göredir.

Seçim ve Sağ Tık Engelleme:


<if condition="$show['guest']"><script language=JavaScript>
<!--
if ( window.Event )
document.captureEvents( Event.MOUSEUP );

function nocontextmenu()
{
event.cancelBubble = true, event.returnValue = false;
return false;
}

function norightclick( e )
{
if ( window.Event )
{
if ( e.which == 2 || e.which == 3 )
return false;
}
else if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true, event.returnValue = false;
return false;
}
}

if ( document.layers )
document.captureEvents( Event.MOUSEDOWN );

document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;
document.onmouseup = norightclick;

function notaccept(e)
{
return false;
}

document.onmousedown = notaccept;
document.onselectstart = new Function( "return false" );
// -->
</script></if>


Ctrl + c Engelleme :


<if condition="$show['guest']"><script>
function ctrlCEngelle(e) {
olay = document.all ? window.event : e;
tus = document.all ? olay.keyCode : olay.which;
if(olay.ctrlKey&&(tus==99||tus==67)) {
if(document.all) { olay.returnValue = false; } else { olay.preventDefault(); }
}
}
</script></if>