Quantcast

Forums | MacLife

You are not logged in.

#1 2006-11-19 7:44 pm

Some1
The flying moleman.
From: Montréal
Registered: 2003-05-17
Posts: 2702

Make your browser Twirly!!!

This is a little trick I found on the internet. Go to a website and then once it's loaded, enter the following code into your address bar and press enter.

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.getElementsByTagName("img"); 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)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',50); void(0);

You can replace the "img" with any other HTML object.

[Removed <code> tags to make the code not widen the page humongously. -Alien]

Offline

 

#2 2006-11-19 8:44 pm

oatmeal
the clueless ones
Royal Wombat
Registered: 2002-08-07
Posts: 609
Website

Re: Make your browser Twirly!!!

That's pretty cool.

Offline

 

#3 2006-11-19 8:50 pm

Donkey Butter
jerk face
From: over yonder
Registered: 2005-12-14
Posts: 2444

Re: Make your browser Twirly!!!

fun for all ages smile

Offline

 

#4 2006-11-19 9:03 pm

icebook1
That college kid
From: Virginia
Registered: 2001-05-27
Posts: 1384

Re: Make your browser Twirly!!!

Wheeeeee! Pretty trippy...

Offline

 

#5 2006-11-19 9:31 pm

Some1
The flying moleman.
From: Montréal
Registered: 2003-05-17
Posts: 2702

Re: Make your browser Twirly!!!

Do it on oatmeal's smily page

Offline

 

#6 2006-11-19 10:01 pm

oatmeal
the clueless ones
Royal Wombat
Registered: 2002-08-07
Posts: 609
Website

Re: Make your browser Twirly!!!

Some1 wrote:

Do it on oatmeal's smily page

Ooh, good call.

Offline

 

#7 2006-11-19 10:33 pm

SpacemanSpiff
Stupendous Man
From: Transmogrifier
Registered: 2001-07-31
Posts: 5536

Re: Make your browser Twirly!!!

oatmeal wrote:

Some1 wrote:

Do it on oatmeal's smily page

Ooh, good call.

lol


"The first time one sees natural beauty which is privately owned; oceans as people's back yards, confounds the senses.  I didn't know God had a a toy store for the rich." -- Spanglish
Where forums are fun again: macstack

Offline

 

#8 2006-11-19 10:35 pm

SpacemanSpiff
Stupendous Man
From: Transmogrifier
Registered: 2001-07-31
Posts: 5536

Re: Make your browser Twirly!!!

Here's "cooler" (well, different anyway):

cange the r=1 to r=10 and the Math.cos to Math.tan


"The first time one sees natural beauty which is privately owned; oceans as people's back yards, confounds the senses.  I didn't know God had a a toy store for the rich." -- Spanglish
Where forums are fun again: macstack

Offline

 

#9 2006-11-19 11:04 pm

333imacman
Disappointed
From: Minnesota
Registered: 2002-05-26
Posts: 2171
Website

Re: Make your browser Twirly!!!

I thought this was an thread about a new browser that I'd never heard of.


i don't understand most things
i don't really want to
i just want the strength
to keep fighting it

Offline

 

#10 2006-11-20 5:43 am

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 50394
Website

Re: Make your browser Twirly!!!

This rocks.


In her right hand Jenny held the Bible of her mother
Jenny had a pistol in the other
-- Steve Taylor

Offline

 

#11 2006-11-20 6:26 am

lieven
Member
From: Belgium
Registered: 2001-05-15
Posts: 835
Website

Re: Make your browser Twirly!!!

You can add this code as a bookmark too.. Fun is just one click away big_smile

Offline

 

#12 2006-11-20 7:07 am

Fried Chicken
Member
From: Good question - keeps changing
Registered: 2003-11-17
Posts: 4557

Re: Make your browser Twirly!!!

It doesn't work for me...  sad

Last edited by Fried Chicken (2006-11-20 9:48 am)


http://i58.photobucket.com/albums/g279/FriedChicken_Sam/USA.gif?t=1187025394 http://i58.photobucket.com/albums/g279/FriedChicken_Sam/USAGermany.gif?t=1187033097http://i58.photobucket.com/albums/g279/FriedChicken_Sam/Germany.gif?t=1187025375

Just because something is legal, doesn't mean it's right.  Just because something is illegal, doesn't mean it's wrong.

Offline

 

#13 2006-11-20 9:24 am

Account axed on request
Guest

Re: Make your browser Twirly!!!

Sweet! smile

 

#14 2006-11-20 10:02 am

F041
Member
Registered: 2004-03-13
Posts: 3294

Re: Make your browser Twirly!!!

How do I get it to stop without closing the page?

Offline

 

#15 2006-11-20 10:38 am

henebry
Member
Registered: 2003-04-24
Posts: 477

Re: Make your browser Twirly!!!

Some1 wrote:

Do it on oatmeal's smily page

A bit slow; too many images (at least in my browser). But worked great on THIS page, with all the little avatars swirling around.


"I am flaccid with rage" - Steven Colbert on the iPhone

Offline

 

#16 2006-11-20 12:22 pm

test
Member
From: Collingwood, Ont., CANADA
Registered: 2002-12-13
Posts: 5300

Re: Make your browser Twirly!!!

Now I am teh Bully!

All fear my wrath as I give your websites a swirly!!!!!


BWAHAHAHAHAHAHA!!!!!!!!!!!!!!!!!!!!!!!!






Seriously, this may be the closest thing to a legitimate application of javascript I have ever seen.


Patience is a virtue of the weak for it makes them stand still long enough for the strong to crush them with ease.

Offline

 

#17 2006-11-20 1:10 pm

henebry
Member
Registered: 2003-04-24
Posts: 477

Re: Make your browser Twirly!!!

F041 wrote:

How do I get it to stop without closing the page?

Press the "reload" button, in Safari at least.


"I am flaccid with rage" - Steven Colbert on the iPhone

Offline

 

#18 2006-11-20 1:22 pm

Aqua OS X
Shark Sandwich
From: Oakland, CA
Registered: 2000-06-05
Posts: 12669

Re: Make your browser Twirly!!!

This is going to make the glitter on my MySpace page look sooo totally rad.

Offline

 

#19 2006-11-20 4:46 pm

Some1
The flying moleman.
From: Montréal
Registered: 2003-05-17
Posts: 2702

Re: Make your browser Twirly!!!

Alien wrote:

[Removed <code> tags to make the code not widen the page humongously.

Sorry, on my browser, the code window had its own scrollbar.

Offline

 

#20 2006-11-20 5:19 pm

oatmeal
the clueless ones
Royal Wombat
Registered: 2002-08-07
Posts: 609
Website

Re: Make your browser Twirly!!!

here too

Offline

 

#21 2006-11-20 5:31 pm

Account axed on request
Guest

Re: Make your browser Twirly!!!

Some1 wrote:

Do it on oatmeal's smily page

Ahh! Max Attack! smile

 

#22 2006-11-20 5:44 pm

pirloui
Membre
From: Mabase
Registered: 2000-09-17
Posts: 2692
Website

Re: Make your browser Twirly!!!

wow.
(needs to copy paste it somewhere)


product design portfolio / brothers art
Hackintosh C2Q 2.4Ghz - 4GB - GF9800GT - Mac Pro case
PowerBook G4 1,33Ghz - dead ram slot Apple won't acknowledge

Offline

 

#23 2006-11-20 6:00 pm

oatmeal
the clueless ones
Royal Wombat
Registered: 2002-08-07
Posts: 609
Website

Re: Make your browser Twirly!!!

pirloui wrote:

wow.
(needs to copy paste it somewhere)

- Add Bookmark
- Change the name of the bookmark to "Twirly."
- Replace the link with the javascript
- Save.

Just select the bookmark and it works on any page. smile

Offline

 

#24 2006-11-20 6:03 pm

mjsmitho
Integrated Graphics Banana
From: (-/;) NoPantsville, Texas
Registered: 2000-09-25
Posts: 5930
Website

Re: Make your browser Twirly!!!

henebry wrote:

F041 wrote:

How do I get it to stop without closing the page?

Press the "reload" button, in Safari at least.

That just increased the speed of the "swirly" in my Safari . . .

Bookmarkleted!

Offline

 

#25 2006-11-20 6:15 pm

pirloui
Membre
From: Mabase
Registered: 2000-09-17
Posts: 2692
Website

Re: Make your browser Twirly!!!

oatmeal wrote:

pirloui wrote:

wow.
(needs to copy paste it somewhere)

- Add Bookmark
- Change the name of the bookmark to "Twirly."
- Replace the link with the javascript
- Save.

Just select the bookmark and it works on any page. smile

Smart, thanks smile


product design portfolio / brothers art
Hackintosh C2Q 2.4Ghz - 4GB - GF9800GT - Mac Pro case
PowerBook G4 1,33Ghz - dead ram slot Apple won't acknowledge

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson