nak mengamalkan safety first cam aku?hehe.meh kongsi code alert ineh.
<script language="JavaScript">
<!--
//Disable right mouse click Scriptoo
var message="YO MESSAGE DI CNI!!";
///////////////////////////////////
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>
_______________________________________________________________
layout>>page elemnt>>add gadget>>html/javascrpt (CTRL+C code ineh dan paste kt ruangan td)
<script language=JavaScript>
<!--
//Disable right click scriptoo
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
**selamat mencube.kalu ade error sila laporkn segera.mb ade silap code. :)
noktah
tengs 4 sharing!
ReplyDeletehehe.sharing is sexy.
ReplyDeleteap mksd with alert dgn witout alert kak zaty ?
ReplyDeleteap mksd with alert dgn witout alert kak zaty ?
ReplyDeleteoho,with alert,die akan kuar pop up.
ReplyDeletewithout,die x kuar pape.cam page kak zty. :)
TengS ZAty..^^ ira cbe gak usha2 sbelum ni..xjumpe punn.. huhu
ReplyDeletenewbie here.. =) follow u..lau sudi follow ira blik ea..^^