Sign In | Sign Up

iNdAgAtOr's bLoG

Benvinguts... Bienvenid@s... Welcome... http://www.indagator.tk/

My Profile

iNdAgAtOr
43304
.....
Points: 135
Country: Spain
Gender: Male
Constellation: Gemini

Shortcuts

Post

Remolino de Imágenes
Size: Large, Medium, Small Mon Apr 20, 09 01:49 PM | Category: JavaScript
6

 

Ir a la web de iNdAgAtOr

 

English version

 

Con este código javascript conseguirás que las imágenes giren sin parar:

Abre una ventana con imágenes de, por ejemplo, Google haciendo click aquí: Ferraris en Google

Una vez se haya abierto la ventana de Google con las imágenes, copia el siguiente código javascript y lo pegas en la barra de direcciones y pulsas enter y verás el efecto:

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

Si pulsas enter varias veces, se acelera el remolino y si eres manitas, experimenta cambiando las variables del código.También funciona con Flickr y cualquier otra web con imágenes.

A divertirse!


Link: http://blog.bitcomet.com/indagator/post_91013/ ©
Add to favorites | Quote Reads (420) | Comments (1)

Related Posts

CommentsReload

aca0517 Mon Apr 20, 09 06:49 PM

ok thank you for this information and vote

greeting from spain

MAJOR GENERAL alex

TOP
You need to sign in before