hello sume :)
tutorial ini telah direkues oleh cik dasya
harap beliau suke even agak lambat bertindak
hee ~ biase lerh orang berkerjaye !
haktuih ! HAHA LOL ^-^
disable right click ?
atau dalam bahasa ibunda ialah lumpuhkan klik kanan ?
HAHAHA wek :P
oke tak nak merepek tak tentu hala .
let's cekidaut how to disable right click in blogspot ?
ade 3 kaedah oke ? lalalalala ~
KAEDAH PERTAMA
Step 1 : Dashboard > Layout > Edit HTML tekan CTRL+F then find <body>
Step 2 : replace <body> kepada <body oncontextmenu="return false;">
Step 3 : preview dulu . if dah puas hati . save :)
KAEDAH KEDUA
Step 1 : Go to Dashboard > Design > Add Gadget > HTML / JavaScript
Step 2 : Copy the following code and paste it there .
Step 2 : Copy the following code and paste it there .
<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>
Step 3 : dah paste then save .
note; Function Disabled! boleh di tukar mengikut words kamu sendiri
KAEDAH KETIGA
Step 1 : Dashboard > Layout > Edit HTML tekan CTRL+F then find <head>.
Step 2 : Copy the following code and paste it below <head>.
<script type="text/javascript">
//form tags to omit in NS6+:
//http://eking.in
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
Step 3 : preview dulu . if menjadi . save :)
* * *
oke ! finish ~
ape beza kaedah ketiga-tiga ni ?
kire tahap kedekut larh .
HAHAHA . joke jep sayaaaaang :P
k bye-bye !
fuhh
ReplyDeletethanks dear..very useful! :)
ReplyDelete@hiro
ReplyDeletenp fuuuh ??
@si bantal
ReplyDeleteno biggie syg :D
kalau nak disable right click on image je ada x? hee
ReplyDelete