Pages: 1234566

  2008-02-21 01:36:34

shakiro214
» FTalkGeek
FTalk Level: zero
1188
0
1969-12-31

Re: the code may become obselete.

Hi! Just wanted to share this :cool: [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 :cool: :thumbsup: and I like it :eh: [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 :retard: 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 :wasted: [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 :ninja: :thumbsup: btw, really long shakes are scary & annoying :lol:

You are viewing a post by shakiro214. View all 117 posts in the code may become obselete..

Pages: 1234566

Board footer

© 2024 F Talk

Current time is 15:11

[ 12 queries - 0.018 second ]
Privacy Policy