How To insert or Disable Right Click On Blogger Image

Some time you have ever worked really hard on graphics for your site only to find later that someone has stolen them as their own. You can help encrypt and protect your site with simple adding code.


There are numerous ways to secure and protect your web site from those who want to steal your content or images.

Some webmasters using JavaScript to disable the right click menu on their websites to prevent people from saving images onto their desktop.

How to Disable Right Click on Blogger Image?

Just follow the below simple steps.

1. Log in to blogger and Go to Design > Edit Html

2. Find (Ctrl + F) </head> tag.

3.Copy and Paste below code before </head> tag

<script language="JavaScript1.2">

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. Click save you are done.

Hope you like it :)


SEO TAG:How To insert or Disable Right Click On Blogger Image,How i acn  insert or Disable Right Click On Blogger Image or bloger blogspot post image,  insert or Disable Right Click On Blogger Image, Do not click on image java script  code,

Blogger Tutorials, Blogger Widgets

0 comments:

Post a Comment

 

© 2011 My Places 4 u - Designed by Mukund | ToS | Privacy Policy | Sitemap

About Us | Contact Us | Write For Us