Jumaat, 21 Oktober 2011

. Tutorial - Disabled copy

Siti Nurfariha | 8:54 PTG | 2Comments |
Photobucket
hye bloggers! jom kita ikut tutorial yang di request oleh aini. dia tak tinggalkan link pulak, tapi tak apa ieyha tetap buat tutorial ni untuk you all semua okeh.

Dashboard - design - add gadjet - html/javascript
copy and paste code bawah ini okeh :)

<SCRIPT language=JavaScript>
<!-- http://www.spacegun.co.uk -->
var message = "function disabled";
function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3){ alert(message); return false; }
if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) { alert(message); return false; } }
document.onmousedown = rtclickcheck;
</SCRIPT>

atau korang boleh guna 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="HI COPYCATS :)";

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

2 ulasan:

cik nur farzana berkata...

kak fariha , nak paste kod yg kite copy nie kat bahagian mne dlm edit html ?

ستي نور فريحة berkata...

adik buka lah add gadjet - dan pilih html/javascript