Tutorial:Disable Right Click

Assalamualaikum reader(S)
hadifah nk buat tutorial ni.dudok elok2 dan perhati mata betol2 ek ;)
bagi layout,design,add a gadget,html java script : )
copy code kat bawah ni okey? ;) :

<script language=JavaScript><!--
//edit by unwanted

var message="masukkan mesej power korang kat sini : D";
///////////////////////////////////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>
dah siap?.. save lah :DD
bagi template pulak,pergi template copy code ni:


 <script language=JavaScript><!--
//edit by unwanted

var message="masukkan ayat hebat korang :DD here!!";
///////////////////////////////////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>
korang save lah mana2 korang suka yek : ) .hadifah bagi cadangan letak kod di  bawah <head>  
siap?? save : D

No comments:

Post a Comment

Tekan "publish" sekali je tau

Terima kasih komen

BUDI BAHASA BUDAYA KITA :)