Flying images: - HotUKDeals
We use cookie files to improve site functionality and personalisation. By continuing to use HUKD, you accept our cookie and privacy policy.
Get the HUKD app free at Google Play

Search Error

An error occurred when searching, please try again!

Login / Sign UpSubmit

Flying images:

poppy10 Avatar
1d, 1m agoPosted 1 decade, 1 month ago
Try this:
Go to a page with lots of images - for example

http://images.google.co.uk/images?hl=en&q=catshttp://images.google.co.uk/images?hl=en&q=cats

Then copy and paste this into the address bar and click "go":

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()',50); void(0);

EDIT: I don't know why it's not working here. See the post by G0ld below for the working version
poppy10 Avatar
1d, 1m agoPosted 1 decade, 1 month ago
Options

All Comments

(15) Jump to unreadPost a comment
Comments/page:
#1
nothin happens
#2
Try this 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);

It even works on the HUKD Forum!!!
#3
Nothing for me either. Is something blocking it?
#4
nothing :-(
#5
nothing here :(
#6
Try this



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

:)
#7
G0ld13
Try this



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

:)


[SIZE=4]AGGGGGGGGGGGG!!!!!!!!!!!!![/SIZE]
#8
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("a"); 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);
#9
Wow !!
#10
Excellent .... :santa:
#11
lol it works now! can we make it work on hukd posts?
#12
paperclip
lol it works now! can we make it work on hukd posts?


Yep, it will work on any page that has images.
I don't know why I can't get it to work in my original post - I think the HUKD forum software might be doing some funny business with line breaks or some such. Anyway, G0ld's post shows the working code.
#13
Now i see - the forum software is inserting random spaces for some reason:

poppy10
se tInterval
MattC
"a bsolute"


When I go to edit the post, the space is gone, but when I save it is back again.
Can any mod explain why this is happening?
#14
nice lol .
#15
Very trippy!!!!!! lol

Post a Comment

You don't need an account to leave a comment. Just enter your email address. We'll keep it private.

...OR log in with your social account

...OR comment using your social account

Thanks for your comment! Keep it up!
We just need to have a quick look and it will be live soon.
The community is happy to hear your opinion! Keep contributing!