Tutorial: Disable right click

Tuto niy for those yg agk ati2 dgn dunia blog.. Utk mngelakkan pape from ur blog dpd d copy olh yg x bknaan, so blh la guna kan this tuto k ;))

1st step:
Go to DASHBOARD > DESIGN > ADD A GADGET > HTML/JAVASCRIPT

2nd step:
Ad dua cara yg u'all blh follow samada nk bila org tkn right click, ad kua note or bila org tkan right click x de pape yg kua.. Haa renung2 kan la nk plh yg mne heheh ;p

WITH NOTE
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="WARNING ANDA";
///////////////////////////////////
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>>
WITHOUT NOTE 

<script language="javascript">
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="JANGAN COPYY.";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layersdocument.getElementById&&!document.all){
if (e.which==2e.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>
Oke niy je.. PREVIEW dlu then SAVE ^^

0 Comment(s):

Post a Comment

 
Copyright © 2016 KNISAZIZ. All rights reserved.