Hi! Just wanted to share this
[quote][color=red][b]For educational purposes only.[/b][/color][/quote]
I've created my own variation of this code which I use on my profile
and I like it
[b]preview:[/b] [url=http://profiles.friendster.com/shakiro][sub]toasty![/sub][/url]
[b]silent thunder right click[/b]
the page will vibrate for about 1.5 seconds in FF after right click
I also added some codes to help it to work in IE6 and Opera, but I'm not sure if it works in IE6 or Opera becoz I already upgraded to IE7 and I don't have Opera. IE7 no longer allows browser windows to shake
[quote]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(20);
return false;
}
}
function nrcNS(e) {
if (document.layers || (document.getElementById && ! document.all)) {
if (e.which == 2 || e.which == 3) {
rumble(20);
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");[/quote]
for a longer or shorter shake, just edit the number [b]20[/b] in the 2 instances of [b]rumble(20);[/b] in my code to a higher or lower number
btw, really long shakes are scary & annoying