Selasa

No Right







No Right Click Shake
Code:

document.write('body oncontextmenu="return false"');
//FriendsterMagic.net
function shake() {
if (event.button==2) {
var x=10
if (document.all||document.layers) {
for (i=0;i,i<20;i++){
window.moveBy(0,x)
window.moveBy(x,0)
window.moveBy(0,-x)
window.moveBy(-x,0)
}
}
}
}
document.onmousedown=shake;


No Right Click Without Alert
Code:

//FriendsterMagic.net
function nrcIE(){
if (document.all){return false;}}
function nrcNS(e){
if(document.layers||(document.getElementById&&!document.all)){
if (e.which==2||e.which==3){
return false;}}}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=nrcNS;
}else{document.onmouseup=nrcNS;document.oncontextmenu=nrcIE;}
document.oncontextmenu=new Function("return false");


No Right Click with Alert Box
Code:

//FriendsterMagic.net
message = "bawal yan";

function NoRightClick() {
if(((navigator.appName=="Microsoft Internet Explorer")&&(event.button > 1))
||((navigator.appName=="Netscape")&&(b.which > 1))){
alert(message);
return false;
}
}
document.onmousedown = NoRightClick;
// -->

Met Nyoba, Hehehe ..





Tidak ada komentar:

Posting Komentar