25 August 2012

Tutorial ClassicTemplate/Blogskin : Disable Right Click


السّلا م عليکم ورحمةالله وبرکة | Salam Sejahtera :)

Selalunya orang guna benda ni untuk mengelakkan orang copy anythings from their blog lah. So, diorang tak bagi orang right click. Tapi, kalau blog yang ada freebies, tutorial tu tak digalakkan pasang benda ni :p

1.Dahsboard > Template > Edit HTML
2.Tekan Ctrl+f serentak dan cari code ni
3.Copy code di bawah.
<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>
4.Pastekan di bawah code <head>
5.Preview & save.
author image

FAQIHAH HUSNI

Hi! I'm the writer and author of this webpage. Currently studying in SM Sains Kubang Pasu or know as KUPSIS in Kedah. A Kedahan girl for sure! 2017 is my senior year there and I'm fighting to 9A+ in SPM. Do pray the good result for me and others 1317 warriors. Thank you for your time :)

4 comments:

Budi Bahasa Budaya Kita