tutorial disable right click..




salam... ari nie saya nak wat tutorial yg direquest oleh Gadiz_tulen..so, x nak membebel panjang.. jom tengok cara2 nye..

korang copy nie..



<script language=”javascript”>
//*******************************
//*Disable Right Click on a browser
//*Made available by http://www.anandsoft.com
//*Written by Ravi Shankar Bhatia
//*The above information may not be removed ..For help please email: info@anandsoft.com
//********************************/
PopUpURL = ” Function Disabled! “;

isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;

if (isIE||isNN)
{
document.oncontextmenu=checkV;
}
else
{
document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
document.onmousedown=checkV;
}

function checkV(e)
{
if (isN4)
{
if (e.which==2||e.which==3)
{
dPUW=alert(PopUpURL);
return false;
}
}
else
{
dPUW=alert(PopUpURL);
return false;
}
}
</script>

<!– End of Script –>

copy nie n paste kan lah kat ruang html kowang.. yang ayat berwarna merah tu boleh dtukar ke ayat sendiri.. arap maklum..

Ulasan

Catatan popular daripada blog ini

Tutorial: Letak Facebook share button di blog

Resepi: Kek Batik Sarawak/Milo

'Choice'