The best way to stop people copying images is to disable the right-click option in your blogger page. You can do this simply by following these simple steps:
1. Go to "Layout->Edit HTML" from your dashboard. Always, you should make a backup of your template before modifying the HTML by clicking on the "Download full template" link at the top of the page first.
2. Search for the following code in your template.
<body>
3.Replace the above code with the following code.
<body onmousedown="return false" oncontextmenu="return false" onselectstart="return false">
or you can use this js code on your blog:
<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>
0 comments:
Post a Comment