amiick Admin
Honors : 142 Age : 34 Location : cavite Warnings : FW Mood: : Honors : 57874 Registration date : 2009-01-15
| Subject: NO RIGHT CLICK-VIBRATE Thu Jan 15, 2009 8:55 am | |
| - Code:
-
[font=Courier New]var browser=navigator.appName; var mic="Microsoft Internet Explorer";
function rumble(n){ for(i=10;i>0;i--){ for(j=n;j>0;j--){ if ((browser==mic) || (browser=='Opera')) { parent.moveBy(0,i); parent.moveBy(i,0); parent.moveBy(0,-i); parent.moveBy(-i,0); } else { with(window){ moveBy(0,i); moveBy(i,0); moveBy(0,-i); moveBy(-i,0); } } } } }
function nrcIE() { if (document.all) { rumble(30); return false; } }
function nrcNS(e) { if (document.layers || (document.getElementById && ! document.all)) { if (e.which == 2 || e.which == 3) { rumble(30); 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");[/font] | |
|