Thread Rating:
  • 5 Vote(s) - 3.4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyBB Forumda Üye Olmayan Kullanıcıya Sağ Tuş Yasağı Koymak
#1
HTML-1 
MyBB Forumda Üye Olmayan Kullanıcıya Sağ Tuş Yasağı Koymak

Aşağıdaki kodları header_welcomeblock_guest şablonunun en altına ekleyiniz.


Code:
<script language=JavaScript>
<!--

var message="LÜTFEN ÜYE OLUNUZ !";

///////////////////////////////////
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")

// -->
</script>





Signing of RasitTunca
[Image: attachment.php?aid=107929]
Kar©glan Başağaçlı Raşit Tunca
Smileys-2
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)