cara nak letak disable right click tanpa alert

aku tak suka letak yang ada msg tu
cam menyemak je kan..
so sape2 rasa nak cuba boleh buat okay..
mengelak page source kite di copy..
apa2 jela kan...

pergi dashboad>>design>>add a gadget>>html/javascript

paste code ni okay

<script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)

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>


dah siap save okay..

No comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...