icon
ایک پیغام چھوڑ جائیں!

Post Top Ad

جمعہ, ستمبر 19, 2014

اپنے بلاگ پر دائیں کلک کو کس طرح غیر فعال بناتے ہیں؟

Disable+BlogIf you own a blog then you always want to prevent other malicious bloggers from copying the content from your blog. you might have written an article with great efforts and lots of research and other just copy/paste it on their blog. To prevent such user from copying content from your blog I will show you JavaScript trick to disable right click on your blog. So lets get started.

How to Disable Right click on your log?
1- First click on your blogger name.
    For-example: My blogger name is "Soft-Mix-SmS".

Disable+Blog-1

2- Go to you blogger "Dashboard" and then click on "Layout".

Disable+Blog-2

3- After that now click on "Add Gedget" and select "Html/JavaScript".


Disable+Blog-3
Disable+Blog-4

4- Now Copy this below code and paste in to pop up window.

<!-- tangowalituts.blogspot.com -->
<script language=javascript>

var message="Thanks, For visiting our blog. But Sorry! don't copy my style.";

///////////////////////////////////
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>
<!--Code End https://tangowalituts.blogspot.com>


































5- After pasting the code click on "Save" button.

Disable+Blog-5

Post Top Ad

up-arrow-emoji