isZkandar


Welcome



Cak2!!, Welcome to IT blog blog. Thanks for visited my blog hope you guys like it. TAKE NOTE!!! PLEASE USE CTRL + C TO COPY

SEDANG MEMBULATKAN MATA

Board


Anything


facebook.com/iskandar98
Singingsong

Put your song here. Width 240px only.
>>OLDERPOST<< | >>NEWERPOST<<

tutorial- disable right click
Friday, 27 August 2010 | | Written by : irfan.


ok...
skrang nie aq nk ajr korng cara2 nk disable RIGHT CLICK kat
blog korang......

tngk nie btol2.....

CARA 1: Layout - edit html
Pastu carik code <body> dah jumpa.. code <body> tu kamu tukarkan kepada <body oncontextmenu="return false;">
Then save template..

SIAP!...

CARA 2: yg nie dye kuar pop up...

PASTE KAT: at layout\page element\add gadget\html/javascript

<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="No Right-Click!";

///////////////////////////////////
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>

P\S: kamu boleh tkar "NO RIGHT CLICK" kepada prkataan amaran yg kamu ske

SIAP SUDA!!!..........

OK....SMPI SINI JE...