PDA

View Full Version : Mandolin javascrip fun



Brian Ray
Jan-07-2007, 9:25pm
Thought some folks might find this interesting...

1. Go to the main cafe page
2. delete everything in the address bar (url)
3. enter the following:

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterv al('A()',5); void(0);

4. hit enter and enjoy

Now this post only has mandolin content if you do this trick on the cafe site... but it works on most sites. It's also harmless.

Chip Booth
Jan-07-2007, 9:31pm
I think it's more fun on this page, where the emoticons fly around. Nifty trick!

Chip

Ted Eschliman
Jan-08-2007, 6:52am
Fun!
Try this in the Eye Candy Section of the Cafe, or front page on my website (http://jazzmando.com), too.

JEStanek
Jan-08-2007, 9:17am
Doing it on the eye cand page is what happens in my head every time I find some extra cash.

Pretty cool! Thanks for the code, Brian.
Jamie

Mark Walker
Jan-08-2007, 9:37am
Someone has FAR too much time on their hands! (Probably should be playing mandolin rather than coding for creative animations!) http://www.mandolincafe.net/iB_html/non-cgi/emoticons/biggrin.gif

Thanks for the smiles!

Chip Booth
Jan-08-2007, 11:43am
Ted you just wanted the extra hits on your site didn't you http://www.mandolincafe.net/iB_html/non-cgi/emoticons/biggrin.gif

Running that on the Eye Candy page is TOO much fun!

Works nicely for guitar lovers on this Martin page also

http://www.martinguitar.com/guitars/choosing/model.php

Chip

mehrsam
Jan-08-2007, 3:10pm
My head hurts... http://www.mandolincafe.net/iB_html/non-cgi/emoticons/tounge.gif