Friday, 20 January 2012

TUTORIAL : DISABLE RIGHT CLICK


tak nak orang copy gambar korang??

yelahkan .. zaman sekarang ramai orang suka ambil kesempatan.. 
tahu tahu je gambar kita dah jadi apa..
so... korang just follow tutorial bawah ni.. macam biasa.. simple saje !! :)


1) copy code bawah ni..


<script language=JavaScript>
<!--

//edit by unwanted


var message="Masukkan Mesej Anda Disini";

///////////////////////////////////
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>

2)  Paste yang korang copy atas ni pada "HTML/javascript" dalam blog anda.


     Dashboard >Layout>Add a Page element >html/javascript.

 



ok dah siap!! cuba try tengok jadi tak..?? :)


credit to: unwanted..

note: tq 4 supporting me..

No comments:

Related Posts Plugin for WordPress, Blogger...
Bookmark |