February 08, 2012, 03:30:21 AM

Author Topic: Some javascript fun...  (Read 319 times)

John

  • BNU Leader
  • THE ENGLISH EMPEROR
  • ****
  • Posts: 1082
  • Karma: +23/-12
  • BNU Founder
    • View Profile
    • http://www.bnet.cc/
Some javascript fun...
« on: May 01, 2008, 05:25:43 PM »
So in the address bar, remove everything and put the following in:

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);


Hit enter and scroll to the top of the page. :)

Since February 22, 2002

Bnu-Sorceress

  • BNU Leader
  • THE CONGAN EMPEROR
  • ***
  • Posts: 781
  • Karma: +2/-4
  • Personal text!
    • View Profile
    • http://www.clanbnu.net
Re: Some javascript fun...
« Reply #1 on: May 01, 2008, 09:59:49 PM »
haha thats awesome. i had to refresh the page to reply though :(


General: Clan BNU - Member Since September 2002.

Lead

  • Guest
Re: Some javascript fun...
« Reply #2 on: May 12, 2008, 06:54:37 PM »
YTMND much? lol
« Last Edit: May 13, 2008, 12:18:59 PM by John »

John

  • BNU Leader
  • THE ENGLISH EMPEROR
  • ****
  • Posts: 1082
  • Karma: +23/-12
  • BNU Founder
    • View Profile
    • http://www.bnet.cc/
Re: Some javascript fun...
« Reply #3 on: May 13, 2008, 12:19:12 PM »
Whatcha talking about Lead?

Since February 22, 2002