Thursday, February 10, 2011

tutorial..

oke..ari nie nak wat tutorial..first time nie..haha...untuk cik nurfarahnajwanazri....

DISABLED RIGHT CLICK

DASHBOARD>DESIGN >PAGE ELEMENT >ADD GADGET >HTML/JAVASCRIPT
.copy je code kat bawah nie ek...
 
<script language=javascript>
<!--


//Disable right mouse click Script
//By Maximus (maximusatnsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com


var message="TEKS KAMU";


///////////////////////////////////
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>



p/s:tulisan warna merah tu tulis ikut kehendak sendiri..oke?ops..lupa lak...xleh click kanan..so highlightkan code tu..then tekan ctrl+c..pastu paste kat html..oke?


6 comments: