Toturial : Disable Right Click

Assalamualikum..Anasayong...Nanie lama tak buat toturial kan??Ok Nanie nak mulakan sekarang..sediakan kertas (gurau)...
Mula-mula..
Sign in > Dashboard > Design > Add Gadget > Html/Javascript
Paste Kod ni dkt Html / Javascript korang :D

<!--
//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="Ayat korang";
///////////////////////////////////
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>
Then siap!!Simple kan?? Like ABC ..actually Toturial ni simple je...Sebelum Nanie lupa korang cuba tekan right click picture korang..kalau ada keluar sesuatu "Berjaya"...kalau tak ada respond "Cuba betul kan Kod ini ya"..Bye

0 cute elephant:

Post a Comment

Assalammualaikum + annyeong, :)

Komen di sini ya!!
Satu perkataan pun tak pe...hehehe
Komen banyak2 tau!!

 
Tempelate Designed by Nanie| Copyright-2011 Protected | Infinite
Fly away