Disable Right Click With Alert Message

06/02/16

1. Buka Blogger > Dashboard
SIMPLE TEMPLATE AND DENIM TEMPLATE:
  • Layout / Tata Letak > Add a Gadget
  • Pilih HTML/JavaScript
BLOGSKINS AND CLASSIC TEMPLATE:
  • Cari kode <head>
2. Copy kode di bawah
<script language=javascript>
<!--
//gifta-www.giftasblog.co.vu
var message="Eit? Mau apa? Copy kode? Highlight kodenya dan tekan CTRL+C bersamaan, dong! Copy image? Drag saja gambarnya!";
///////////////////////////////////
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>
lalu paste di kotak content HTML/JavaScript (SIMPLE TEMPLATE AND DENIM TEMPLATE) dan letakkan di bawah kode <head> (BLOGSKINS AND CLASSIC TEMPLATE)

3. Save!
 
 
credit: Gifta

Label:





0 comments

Posting Komentar


Kio