Tekil Mesaj gösterimi
  #5 (permalink)   iTrader 
Alt 2006-09-30, 18:58
AlemTurk - ait Kullanıcı Resmi (Avatar)
AlemTurk AlemTurk isimli üyemiz çevrimdışıdır. (Offline)
Seo katiLi
 
Üyelik tarihi: Aug 2006
Nerden: GebZe
Mesajlar: 2.919
Blog Entries: 2
Tecrübe Puanı: 0
iTrader: %100/3
AlemTurk will become famous soon enoughAlemTurk will become famous soon enough
Wink

PHP- Kodu:
<SCRIPT language=JavaScript1.2>

/*

No Right Click

by: Mondain

*/



if (window.Event// Only Netscape will have the CAPITAL E.

document.captureEvents(Event.MOUSEUP); // catch the mouse up event



function nocontextmenu() // this function only applies to IE4, ignored otherwise.

{

event.cancelBubble true

event
.returnValue false;



return 
false;

}



function 
norightclick(e// This function is used by all others

{

if (
window.Event// again, IE or NAV?

{

if (
e.which == || e.which == 3)

return 
false;

}

else

if (
event.button == || event.button == 3)

{

event.cancelBubble true

event
.returnValue false;

return 
false;

}



}



document.oncontextmenu nocontextmenu// for IE5+

document.onmousedown norightclick// for all others

</SCRIPT> 


Yada Bu Şekilde

PHP- Kodu:
<script language="JavaScript1.1"><!-- Begin
function right(e) {
if (
navigator.appName == 'Netscape' && 
(
e.which == || e.which == 2))
return 
false;
else if (
navigator.appName == 'Microsoft Internet Explorer' && 
(
event.button == || event.button == 3)) {
alert("YASSAH HEMŞERÜM YASSAH");
return 
false;
}
return 
true;
}

document.onmousedown=right;
if (
document.layerswindow.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
// End -->
</script> 
Alıntı ile Cevapla