//Forever Love♥
disable right click.

Wednesday 23 March 2011 @ 05:08 | 6 Flying kisses ❤


Salam peeps (:
Hari Ini wawa akan bagi tutorial cara disable right click pada blog korang. Disable fungsi right click pada blog korang adalah bertujuan untuk menghalang dan mengelakkan entry korang dicuri oleh copycat yang tidak bertanggungjawab.






1. First sekali, korang tekan dashboard design add gadget HTML/javascript.


2. Kemudian korang copy code dekat bawah ni.

<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="Function Disabled!";


///////////////////////////////////

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. Then korang edit perkataan Function Disabled! tu mengikut sesuka sesuki hati korang. Contoh: "neno neno..polis,tolong!! ada copycat mau curik friskies.. :)" . Nanti bila ada orang tekan right click dekat blog korang, dia akan keluar pop up message macam dekat bawah ni.



4. Kalau tiada sebarang masalah, korang save jela, pastu pegi try tekan right click dekat blog korang yea. :)










| Newer Post
3 applelovelove[s]


Hello little earthling jello, awkward strangers and mysterious stalkers (:



please click the like button to support my blog. :) i love♥ you guys so much.rawr!






Blog's name: ujawa4ever.blogspot.com
Blog's owner: Alwani Zulhilman

I'm using this template from blogskin, tweak and twist the coding and made it mine.

Background :Glitter-graphics
Icons : Iconspedia
Images : We❤it,Glitter-graphics