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.

Comments

Post a Comment

Budi Bahasa Budaya Kita

Popular posts from this blog

Tutorial : How To Use Blogskin? Cara nak Guna Blogskin

Senarai Pemenang Anugerah Melodi 2016

Tutorial: Letak gambar di sidebar