My Cute Friend (Kengkawan)

Monday, December 5, 2011

Tak bagi orang copy picture @ disable right klik

 1. copy  koding bawah ni :
 2. pastu klik Design
 3. klik Add a Gadget
 4. pilih HTML/JavaScript
 5. paste kod tadi n jgn lupa tukar ayat yg bercolor merah tu 
 6. klik save
 7. preview dulu lau da jadi baru save
 8. lau xnak klik blk kat gadget yg korang wat tadi then just remove je gadget tu


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

var message="Taip la pape kat sini";
///////////////////////////////////
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>

No comments:

Post a Comment