Wednesday, June 27, 2012

Tutorial Disable Right Click (Blogskin)


Tumblr_m5bq6n2cpc1ql9xm0o1_500_large
Atin nak ajar korang macam mana nak buat disable right click dekat classic template/blogskin. . 



 Dashboard > Template > Edit HTML
 Tekan ctrl+f  then cari code <head>
 Copy code bawah ni.

<script language=JavaScript>
<!--//Disable right mouse click Script
//By Dynamicdrive (renigade@nsimail.com)
//For full source code, visit http://www.dynamicdrive.com
var message="";
///////////////////////////////////
function clickIE4(){
if (event.button==2){return false;}}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){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("return false")// -->
</script>

 Pastekan di bawah code <head>
 Then Preview & save.

1 comment:

Shafa Afa said...

Kak kalau misal mau dikasih mesej kayak di tempatnya Maila gimana?