TUTORIAL : DISABLE RIGHT CLICK

Oke, Tutorial kali nih buat mereka mereka yang tak mahu orang Copy apa-apa dari blog mereka.
Bila orang nak Copy menggunakan Right Click, dengan adanya Disable Right Click tanpa alert ni, apa-apa yang orang nak copy tu tak dapat di Copy sama sekali.

Senang je. Jom try!

1. Dashboard > Design > Add New Gadget > HTML / Java Script

2. Copy dan Paste kod kat bawah nih dalam HTML / Java Script tadi.
<script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dauspozi.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>

Oke, done! Save, dan uols try la oke!  


1 ulasan:

DISCLAIMER: Comments are welcomed. However, noted that, tasteless and insulting comments may be deleted. Any personal remarks and attacks may be deleted. The same holds true for off-topic comment. Any comments that reek of link spam or marketing messages will be deleted.

I am not responsible for the content in comments other than those made by me, or in blogs, or other online content that I may link to.

Dikuasakan oleh Blogger.