السبت، 1 سبتمبر 2012

كيفية تعطيل النقر بالزر اليمن للماوس

طريقة تعطيل زر الماوس اليمين 




Login to your blogger dashboard

Click on Design tab

Photobucket




Then click Page Element

After that open a java/HTML textbox and paste the any one following code


<script language="JavaScript">
<!--
ble right mouse click Script //By
//Dis
aMaximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit <a target="_blank" href="http://www.dynamicdrive.com" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.dynamicdrive.com']);">http://www.dynamicdrive.com</a>
var message="Function Disabled!"; /////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){
(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (
if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvent sdocument.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") // -->
</script>

If above code does not work try the following code


<script language="JavaScript">
<!--
ble right mouse click Script //By
//Dis
aMaximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit <a target="_blank" href="http://www.dynamicdrive.com" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.dynamicdrive.com']);">http://www.dynamicdrive.com</a>
var message="Function Disabled!"; /////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){
(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (
if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvent sdocument.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") // -->
</script>

If above code does not work try the following code


<script language=JavaScript>
<!-- <a target="_blank" href="http://www.spacegun.co.uk" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.spacegun.co.uk']);">http://www.spacegun.co.uk</a> -->
var message = "function disabled"; function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3){ alert(message); return false; }
if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) { alert(message); return false; } } document.onmousedown = rtclickcheck;
</SCRIPT>


That all folks.If you like please spend few moments to share this

ليست هناك تعليقات:

إرسال تعليق