Sebelum ni Lezza ada post mengenai tutorial Disable Right Click With Alert. Kali ni kita buat disable right click tanpa amaran pulak. Maksudnya orang tak tau pun yang blog kita x boleh nak right klik. Kiranya kotak amaran x keluar la. Dah sedia??? Jom
1. Login ke blog korang dulu
2. Dashboard > Design > Add Gadget > Html/JavaScript
3. Copy code di bawah
<script language=JavaScript>4. Paste kat ruangan Html/JavaScript tu oke.
<!--
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dauspozi.com
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
5. Save and tengoklah hasilnya =)
**Suka tutorial ni? Jangan lupa komen =)**
1 comment:
Hеllo; Je ѕuiѕ νieіllе de 39 anѕ
!
Јe m'appelle Louise.
Mon boulot, comédienne . il parait que je suis marrante.
Here is my site; reservation hotel
Post a Comment