FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Awesome javascript trick

 


mensun
first delete the content of address bar of ur browser n paste the following code and click go. Have fun scripting...
Quote:
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);
Star Wars Fanatic
That is really cool, although I have found plenty of websites that it doesn't work on, but that is probably for security reasons or something.
X3 Talk
Interesting... did you write the script yourself or did you aquire it from another source?
.ZR.
That is so weird Shocked
S'it okay if I repost that on my site? With credits if you've made it.
mariohs
@mensun
Is this your own creation or you copied and pasted from another place? If the second, you should post the source where you've picked it.
ravi_9793
nice one...
I have seen many such script for orkut.com
they are really very funny. Laughing
TomS
Wow. Great.
Do you have more of this?
per_madsen_aalborg
Hi,

Cool! You can even make this into a bookmarklet.

If you do not know about bookmarklets check this link:

http://www.squarefree.com/bookmarklets/

Best Regards
Per
okullar
That's really pretty good and amazing. I like it very much.
snowboardalliance
wow yeah that's cool.

So where is this from if you did not write it yourself?
I didn't know you could run javascript in the URL bar
golles
hahahaha, verry cool, you got some more??
and have you wrote this yourself or just copy pasted?


//golles
LeukeFilmpjes
mensun wrote:
first delete the content of address bar of ur browser n paste the following code and click go. Have fun scripting...
Quote:
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);

WOW, thats really cool Very Happy You wrote this yourself or not?
If you don't where did you get this sort of scripts? I really like them Very Happy
unknownc1c
omg whoever made that code is a freaking genius!!! lol. I LOVE IT!!
Rhysige
Hoever made that was freaking bored Razz
pashmina
i have seen this before. I think i saw this javascript on other forums.
anyway its old for me
theem
hahahahah kool !! i was searching for my floating display pic !! Laughing
dbdb
Wow! This version works with firefox. There was some other ones that you could do this with. Let me try and find them:

[/code]javascript:x=0;e=document.body;e.style.position="absolute";function rt(){e.style.top=100-(50*Math.cos(x*Math.PI/180))+"px";e.style.left=100+(50*Math.sin(x*Math.PI/180))+"px";x+=5};setInterval("rt()",50);void(0);[/code]
Code:
javascript:x=0;e=document.body;e.style.position="absolute";function rt(){e.style.top=100-(500*Math.cos(x*Math.PI/180))+"px";e.style.left=150+(50*Math.sin(x*Math.PI/180))+"px";x+=5};setInterval("rt()",50);void(0);

Code:
javascript:x=0;e=document.body;e.style.position="absolute";function rt(){e.style.top=1-(50*Math.cos(x*Math.PI/1000))+"px";e.style.left=100+(500*Math.sin(x*Math.PI/180))+"px";x+=5};setInterval("rt()",50);void(0);

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


Some work on firefox and IE others only work on one. These are not original or done by me. Neither is his (he may have modified it a bit).
Skillzzz
Shocked Shocked Shocked Coool !!!

I didn't know that we can do nice stuff like this in javascript !!!

Very Happy

Skillzzz
chillinwitya
WOW that was pretty awsome im impressed i'd really like to see more stuff like that ..it's amazing what people think of when they put the minds to work Very Happy
neoon
cool code man, didn't know that that thing worked.
chris20
Heh that looks ridiculous on the firefox google homepage. Very cool.
Related topics

Awesome javascript tricks!
placing focus in textbox
Firefox turn off the design mode
I could really use some help with Javascript...
JavaScript Countdown Timer Help!

3D Worm in JavaScript!!!
xMPACT.com is alive!! - And Updated 7-17-2008!!!!
Drag images (Javascript)
Ok a little help for a semi-beginner
PB PHP, Iframe and Javascript

Clock-javascript
javascript: needed script for displaying window
witch game is better
Handling Css using Javascript
Navigation Script (javascript) Help Please!
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.