Have you noticed, that some sites do not allow their visitors using right mouse click while pointer is on the blog area. This option is useful for the site and blog owners, who want to minimize the possibilities of the content direct copying to other posts. Right click on any internet browser is very important element and we must use it when it comes to copy or editing texts and etc. It�s very important when it comes to webmasters too but some people may use it in a bad way, and you may want to make click right disabled on your blog. to protect you text, images links and etc. Before i have share How to Redirect Blogger to Another Site and you can also visit Add Google Translate Gadget to Blogger. I hope you will like these articles & also will like this How to Disable Right Click on Blogger For Images.
2. Click Add Gadget And Select HTML/Javascript
3. Copy Paste Below Code.
4. Now Click On Save Button, You Are Done.
2. Click Add Gadget And Select HTML/Javascript
3. Copy Paste Below Code.
<script language="JavaScript1.2">Note: You Can Copy This Code From This Link.
var clickmessage="Right click disabled on images!"
function disableclick(e) {
if (document.all) {
if (event.button==2||event.button==3) {
if (event.srcElement.tagName=="IMG"){
alert(clickmessage);
return false;
}
}
}
else if (document.layers) {
if (e.which == 3) {
alert(clickmessage);
return false;
}
}
else if (document.getElementById){
if (e.which==3&&e.target.tagName=="IMG"){
alert(clickmessage)
return false
}
}
}
function associateimages(){
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown=disableclick;
}
if (document.all)
document.onmousedown=disableclick
else if (document.getElementById)
document.onmouseup=disableclick
else if (document.layers)
associateimages()
</script>
4. Now Click On Save Button, You Are Done.
Hiç yorum yok:
Yorum Gönder