View Full Version : Post this in your browser
BaggedLancer
10-08-2006, 06:55 PM
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()',5); void(0);
Enjoy polk fans, new screensaver!
TheReaper
10-08-2006, 07:01 PM
Appears that the code got truncated.
BaggedLancer
10-08-2006, 07:29 PM
?? thats how its supposed to be, copy all that and put it in your browser.
audiobliss
10-08-2006, 09:19 PM
Post it....where?
millerman 3732
10-08-2006, 09:26 PM
I think the page has been removed.
audiobliss
10-09-2006, 01:11 AM
Hahahaha, that's awesome; I just got it to work.
I had to use IE with javascript enabled. What you do is, at the Polk forum homepage, enter the text he posted into your navigation bar and hit enter. Things start flying around the page. It's pretty awesome.
TheReaper
10-09-2006, 06:42 AM
audiobliss - the code as it is displayed in your browser, does it end with:
Math.sin(R*x1+i*x2+x
or is there more?
Because what I see is obviously truncated (missing code at the end), and doesn't run in my IE (script error at character 249).
audiobliss
10-09-2006, 09:31 AM
There is a good bit more after math.sin. Here's the code:
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()',5); void(0);
bobman1235
10-09-2006, 09:42 AM
Ha! That's pretty wild.
Only works in IE for me. Be on any page with images on it, then enter the string that audiobliss has into the location bar, and all the images in the page will start spinning around. NEat.
TheReaper
10-09-2006, 11:51 AM
audiobliss - thanks, now it works (with all the code from you)
PolkThug
10-09-2006, 12:01 PM
haha That's pretty cool.
audiobliss
10-09-2006, 12:10 PM
audiobliss - thanks, now it works (with all the code from you)
No problem. I would just say that I completed/fixed the code baggedlancer provided, but alas 'I cannot tell a lie'. That was code he gave me over IM.
mrbigbluelight
10-09-2006, 12:33 PM
I dunno ..... I became frightened !
Polkitup2
10-09-2006, 06:20 PM
Do that while you're in the tasteful babes thread and it's pretty wild!
del44
10-09-2006, 07:17 PM
Wow, that thing is pretty slick.:)
It works on other forums too.
BaggedLancer
10-09-2006, 07:25 PM
heh, i fixed the code earlier so thats the right one at the top now.
Glad to give everyone a little bit of entertainment
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.