 | |
04-12-2007, 11:56 AM
|
· #1 | | Biz24.com -- Are you in? Name: Gene Location: Oswego, NY Join Date: Feb 2005
Posts: 4,598
NP$: 1719.60 ( Donate)
| Ha! You've gotta try this. Useless, but pretty cool. Just go to any website containing photos or graphics of any kind (even this very page). Then paste this into your browser address bar:
javascript :R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=50;y4=100; 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);  |
| |
04-12-2007, 12:09 PM
|
· #2 | | Stud Sausage Location: England Join Date: Dec 2006
Posts: 1,545
NP$: 32.41 ( Donate)
| Haha yeah, posted a while back i believe. It's great on ages with a bunch of images.
Who says maths is useless  (just had fun catching the edit button to add that  )
Matt
Last edited by Matthew. : 04-12-2007 at 12:21 PM.
|
| |
04-12-2007, 12:10 PM
|
· #3 | | DNOA Member Name: John Location: Brize.mobi Join Date: Jun 2005
Posts: 448
NP$: 311.18 ( Donate)
| Loved it, had to stop it made me dizzy. |
| |
04-12-2007, 12:28 PM
|
· #4 | | NamePros Regular Name: Adam W Location: Elgin, Illinois Join Date: Apr 2007
Posts: 332
NP$: 10.00 ( Donate)
| That is nutty - thanks for sharing, now I will share with others - lol
__________________ GoHD.TV! - iGolfer.TV Both Now LIVE!
There are times, that my post will make no sense whatsoever, so just move along please.
|
| |
04-12-2007, 02:41 PM
|
· #5 | | DNOA Member Name: -Unknown- Location: Inside your head... Join Date: Oct 2005 | Yep, think the originator of that was using his head for sure. Every time see it, like John, go dizzy
I have a few more (albiet none as complex as the image one  ), that I will share when I find what I did with them  In the meantime, here is another one (I didn't create it..lol) that highlights all the pages DIV's and parts of TABLES:
javascript :var f=function(tt,col){var a=document.getElementsByTagName(tt);for(var b=0;b<a.length;b++){a[b].style.border='1px solid #'+col;}};f('table','00F');f('td','0F0');f('th','0 FF');void(0);var a=document.getElementsByTagName('div');for(var b=0;b<a.length;b++){a[b].style.border='1px solid #F00';}void(0); |
| |
04-13-2007, 07:57 PM
|
· #6 | | Senior Member Name: Mike Location: Massachusetts Join Date: Mar 2005
Posts: 2,027
NP$: 28.50 ( Donate)
| If you use both of the above codes at the same time, it makes the website pretty trippy...  |
| |
04-13-2007, 08:21 PM
|
· #7 | | The Spoon Name: Jesse Labrocca Location: Las Vegas Join Date: Aug 2004
Posts: 5,103
NP$: 2715.04 ( Donate)
| The best is that the image still work for clicking. |
| |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |