Wednesday, 28 November 2012


ചില വെബ്സൈറ്റുകളിൽ റൈറ്റ് ബട്ടൻ ക്ലിക്ക് ചെയ്യുന്നത് ഡിസേബിൾ ചെയ്തിരിയ്ക്കുന്നത് നിങ്ങൾ ശ്രദ്ധിച്ചിട്ടുണ്ടോ?.ഈ ഓപ്ഷൻ ഉപയോഗിച്ചാൽ ബ്ലോഗിലുള്ള ടെക്സ്റ്റ്, ചിത്രങ്ങൾ ഇവ നേരിട്ട് കോപ്പി ചെയ്യുന്നത് തടയാൻ കഴിയും. 



ഈ സംവിധാനം നിങ്ങളുടെ ബ്ലോഗിൽ വളരെ എളുപ്പത്തിൽ സെറ്റ് ചെയ്യാൻ കഴിയും . 

നിങ്ങളുടേ ബ്ലോഗ് ഡാഷ്ബോർഡിൽ  Layout -- Add Gadget -- HTML / JavaScript എടുത്ത് താഴെ കാണുന്ന സ്ക്രിപ്റ്റ് കോപി ചെയ്ത് അവിടെ പേസ്റ്റ് ചെയ്ത് സേവ് ചെയ്യുക

 


<script language="JavaScript"> 
<!-- 

var message="Function Disabled! Don't Forget to Comment"; 

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




റൈറ്റ് ബട്ടൻ ക്ലിക്ക് ചെയ്യുമ്പോൾ വരുന്ന മെസേജ് നിങ്ങൾക്കിഷ്ടമുള്ളത് നൽകാൻ കഴിയും . മുകളിൽ കൊടുത്തിരിയ്ക്കുന്ന സ്ക്രിപ്റ്റിലെ ആദ്യ വരികൾ ശ്രദ്ധിയ്ക്കുക var message=""; ഇവിടെ ഡബിൾ കോട്ട്സിനുള്ളിൽ നിങ്ങൾക്ക് വേണ്ട മെസേജ് കൊടുത്താൽ മതിയാകുന്നതാണു. 

Source :http://www.dynamicdrive.com
Categories:

0 comments:

Post a Comment

Subscribe to RSS Feed Follow me on Twitter!