Q.E.D
January 9, 2007, 1:38am
2
Doesn’t work right for me. It bunches up all the smilies in one spot and that’s it. Windows XP, Firefox 1.5 browser.
Pretty cool trick. I ran it on Opera and it worked fine.
Sgt Schwartz
Looks like it’s happier in IE. Doesn’t work in Firefox, not even with the IE-Tab extension. Works fine in IE though.
Didn’t work for me in IE or FF 1.5.
What version of IE are you using?
I think it’s 6; I know we haven’t downloaded 7. How can I find out for sure?
Try appending +“px” to the DIS.top and DIS.left assignments. (These are CSS styles, which according to the standards require units, unlike HTML where pixel values are often given with no units.) That is:
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.i
mages;DIL=DI.length;function A(){for(i=0; i-DIL; i++){DIS=DI*.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);
That is wild. It works for me in IE 6.0 and FF 2.0.0.1. www.lileks.com works nauseatingly well!
Whoops the one place that it doesn’t work is on the dope in Firefox. IE is fine.
The second version works for me in FF 2.0. That is …mindblowing.
I have go to figure out how it works, and then annoy my friends when they visit my webpages.
Q.E.D
January 9, 2007, 2:41am
12
Bingo. That fixed it for me.
Help > About Internet Explorer will show you the version number.
Omphaloskeptic:
Try appending +“px” to the DIS.top and DIS.left assignments. (These are CSS styles, which according to the standards require units, unlike HTML where pixel values are often given with no units.) That is:
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.i
mages;DIL=DI.length;function A(){for(i=0; i-DIL; i++){DIS=DI*.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);
I’m surprised it worked in Opera then. Thanks for the fix.
All my browser does is “boop”. Page doesn’t change. Shiira 1.2.1, OS X 10.4.8
Firefox doesn’t do anything with it either.
Nor Opera.
Safari made everything move around in circles. 'Twas odd.
Made a bookmarklet of it. Now to have some fun with google image search.
That is really f’n weird, dude. How (why) on earth did you come up with that?
I can’t claim credit for this one. I saw it on another message board and thought it might be entertaining to share.
I didn’t realize that you could type code into the address bar like that and modify the current page. I will have to play around with this a bit.