Cara pertama
Layout - edit html
Pastu carik code <body>, dah jumpa.. code <body> tu uols tukarkan kepada
<body oncontextmenu="return false;">
..Then save template.. siap!!
Cara kedua
<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.layersdocument.getElementById&&!document.all){
if (e.which==2e.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>
Message "No Right-Click"(macam tpt aqu) korang buleh la tukar dengan ayat yang korang suke ye..Ikut suka hati korang la.. :P
Mana coding ni nak dipastekan?
p LAYOUT - PAGE ELEMENT- ADD A GADGET- HTML/JAVASCRIPT ...siap!!
Cara ketiga - ini cara orang paling kedekut habis la nie.. langsung tak kasik highlight pon text die,kekekee..
<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>
script nie ko paste kan kat LAYOUT - EDIT HTML, Then carik kod <head>,pastekan script di bawah code <head>
siap
So suka ati korang la nak pilih yang mana satu ye...tak paksa pon..hihi
"selamat mencuba"