How Do You Feel When Someone Copies and Pastes Your Post?
ya i know how do you feel.. sometimes people just don't understand simple manner to give credits to the original posters .
so what to do?Yesterday I was just surfing net and suddenly saw this java script to prevent copy of content .I checked it in my test blog and it works perfectly.Steps:Step 1. Goto your blog Layout and then goto Edit HTML.Download your current template.
Step 2: Now press ctrl+f and find </head> tag,then copy and paste javascript given below just before the </head> tag,save the template
<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
}
</script>
This is the the Code you need to paste on </head> . i know you guys cannont copy my blog contents so use this website to copy the source code i had posted it on there
And to prevent Right click:::
What to do?
Log in blogger / Dashboard --> Design --> Add Gadget - scroll down --> HTML/JavaScript --> copy the next code and past in in HTML/JavaScript text box area
Log in blogger / Dashboard --> Design --> Add Gadget - scroll down --> HTML/JavaScript --> copy the next code and past in in HTML/JavaScript text box area
<script language="JavaScript">
<!--
//Disable right mouse click Script
var message="Function Disabled!";
<!--
//Disable right mouse click Script
var message="Function Disabled!";
///////////////////////////////////
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>
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>
When someone will try to do right click a message will appear “Function disabled” , you can change this message too if you wish.
Enjoy.