this javascript works both in Firefox and IE.. it will prevent user to highlight your text and right click to copy it.. i know there are plenty of ways to save the text even the right click button is disabled, but one of my friend insists me to put some minimal protection to their copyrighted text in the blog.. their argument is, make the copycat life harder.. hm..

if you have similar thinking, feel free to use the script below and you are able to apply it either your personal website or even your blog..

so, here for the solution..
<script type="text/javascript">
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
document.oncontextmenu=function(){ return false }
</script>
if you had a problem, don't hesitate to drop your comment.. i will reply you as soon as possible.. good luck!
PERHATIAN! Aktiviti PLAGIAT (copy & paste) sesuatu artikel tanpa pengetahuan dan kebenaran penulis adalah satu aktiviti/perbuatan yang TIDAK BERMORAL!