ar8talk
Yeni Konu aç Cevapla
 
LinkBack Seçenekler Stil
Alt 04-07-2010, 06:28 PM   #1 (permalink)
Kayıtlı Üye
 
vBKralı - ait Kullanıcı Resmi (Avatar)
 
  Date: Apr 2010
 Mesajlar: 40
Tecrübe Puanı: 2 vBKralı is on a distinguished road
Standart Script ile ctrl+c koruması, (sağ tuş dahil)

Arkadaşlar bu kodları sadece 3.8.X değil tüm sürümlerde kullanabilirsiniz.
Footer şablonunu açın en altına ekleyin. Tabi bu misafirlere göredir.

FireFox Sağ Tık Engelleme:

[HTML]<if condition="$show['guest']"><script language=JavaScript>
<!--

var message="Ne yazık ki olmaz!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}}

function clickNS4(e){
if (document.layers||document.getElementById&&!docume nt.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")

// -->
</script></if>[/HTML]Seçim ve Sağ Tık Engelleme:

[HTML]<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>[/HTML]Caba Olarak da CTRL+C Engelleme

[HTML]<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>[/HTML]şu şekilde hem int.exp. hemde firefox için işinize yarayacaktır.
yazı seçme ve sağ tuş engelli.
ayrıca sağ tuşa tıklandığında uyarı vermiyecektir.

[HTML]<if condition="$show['guest']"><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>
<body ondragstart="return false" onselectstart="return false" oncontextmenu="return false"></if>[/HTML]
vBKralı isimli Üye şimdilik offline konumundadır  
Alıntı ile Cevapla
Yeni Konu aç Cevapla

Etiketler
Tags: , , , , , ,

Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 

Bookmarks

Etiketler
ctrl, dahil, ile, koruması, sağ, script, tuş
Seçenekler
Stil