Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Funny JavaScripts

 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4682
333
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found this while searching the web
Just copy the following code and paste into the browser's address bar, and then 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.images; 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; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0)

How cool is that?
 
fred rosenberger
lowercase baba
Bartender
Posts: 12198
35
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried it, it didn't do anything.
 
Sanjeewa Kumara
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cool! It works for me.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12198
35
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
all i see is a white screen.
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4682
333
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fred rosenberger wrote:all i see is a white screen.


I think that JavaScript is disabled on your browser. Isn't it?
 
fred rosenberger
lowercase baba
Bartender
Posts: 12198
35
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no - it is not.

what is this supposed to do?
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4682
333
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fred rosenberger wrote:no - it is not.

what is this supposed to do?


I couldn't understand that why you cannot see it. Did you copy the complete code correctly?
Mmmm...! Oh! I forgot to say that you cannot do this on a new tab/window of the browser. You should do this on the address bar of this (javaranch) tab/window.

This is supposed to fly images in the browser.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12198
35
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, that would indeed be the problem.
 
ozhan kaya
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Devaka Cooray wrote:
fred rosenberger wrote:no - it is not.

what is this supposed to do?


I couldn't understand that why you cannot see it. Did you copy the complete code correctly?
Mmmm...! Oh! I forgot to say that you cannot do this on a new tab/window of the browser. You should do this on the address bar of this (javaranch) tab/window.

This is supposed to fly images in the browser.


hahaha.This is why i like Firefox too much.This code did not work in my firefox.IExplorer worked it.Because ie's job just this :useless things
 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ozhan kaya wrote:This code did not work in my firefox.IExplorer worked it.Because ie's job just this :useless things


He he he it works for me on both FireFox and Chrome.

Ozhan, I would thank you for waking this topic , I didn't see this before.
 
ozhan kaya
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Treimin Clark wrote:
ozhan kaya wrote:This code did not work in my firefox.IExplorer worked it.Because ie's job just this :useless things


He he he it works for me on both FireFox and Chrome.

Ozhan, I would thank you for waking this topic , I didn't see this before.


Yes works in firefox too.This is Cool.Just tryed shit IE I allways doing this becauze of old days:full of worms thanks to activex.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15485
43
Android IntelliJ IDE Java Scala Spring
 
Paul Yule
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow, that's pretty cool.
 
Praphulla Valluru
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Definitely cool
 
Brian Legg
Ranch Hand
Posts: 488
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's great!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic