Friday, February 18, 2011

TUTORIAL : disabled right click





mcm biasa , sblm start buad bismillah dulu . (: 
tuto ne sesuai utk korang yang anti copycat . sama cm sherah . 
sherah dah buad dah bnd ne , so skng sherah nak share ngn korang cena nak buad .
credit to Niesya sbb sherah bljr buad bnd ne kat dia . (: 
nak buad disabled right click ne senang jeaa ..
first korang pilih dulu , korang nak disabled right click yang mcm mana . 
with message or without message .

disabled right click WITH message .
1. design - page element - add gadget - HTML / javascript
2. copy code kat bawah ne .

<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="HAKMILIK SHERAH .DILARANG COPY.";
///////////////////////////////////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>
3. paste and tukar pkataan <HAKMILIK SHERAH. DILARANG COPY> dgn pkataan yang korang nak .
4. SAVE .


disabled right click WITHOUT message .
1. design - page element - add gadget - HTML / javascript
2. copy code kat bawah ne

<script language=javascript><!--
//Disable right click script III- By Renigade (renigade@mediaone.net)//For full source code, visit http://www.dynamicdrive.com
var message="";///////////////////////////////////function clickIE() {if (document.all) {(message);return false;}}function clickNS(e) {if(document.layers(document.getElementById&&!document.all)) {if (e.which==2e.which==3) {(message);return false;}}}if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")// --></script>


3. paste
4. SAVE  

.thanks sudi baca | i love youu !

0 budak banyak cakap !:

Post a Comment

/> /> />
tinggal jejak anda disini !
:) blog ini 100% milik SITI SHAHIRAH ABD SHUKOR (: