}
Selamat Datang Ke Blog Saya! Dah masuk tu, follow je la, ok? XD

Friday, 3 February 2012

Tutorial : Disable Right Click With Alert Messages


Lamanye tak buat tuto..
So, hari ni nak buat tutorial disable right click with alert messages.
Senangnyee.. 
Meh nak ajar!

Dashboard --> Design --> Page Elements --> Add Gadget --> HTML/JavaScript
Copy kod kat bawah ni pastu paste kan ruangan kotak tu!

<script language="JavaScript"><!--
//Disable right mouse click Script//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive//For full source code, visit http://www.dynamicdrive.com
var message="Tak men la right click!";
///////////////////////////////////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>
Yang warna merah gantikan dgn ayat yg korang nak! 

Suka Entry Saya? Follow Jelah!

0 000 bagi wahida coklat:

Post a Comment

-Hai, bloggers!
-Sila tinggalkan komen anda..
-Jangan lupa follow!

♥Jum Melukis♥

Copyright@Semua Entry Kat Atas Ni Hak Milik NurulWahida