| Schrijver |
Bericht |
diabolo Forum Lid
1092 posts |
# Geplaatst: 9 Jul 2008 16:40 · Aangepast door: diabolo
Hieronder een leuke 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);
Ga bijvoorbeeld naar google.nl
als je er bent gooi je die code in de adresbalk en druk op enter...
De afbeelding vliegt over je scherm
Ga nu nog een keer in je adresbalk staan, zodat je heel de code geselecteerd hebt, en druk nog maals op enter
De afbeelding gaat nu willen rond
Als je dit nog een paar keer doet, gaat het echt supersnel
Kweet niet of jullie het leuk vinden maar ik vond het iig grappig... :d
Gerco
|
| |
|
FMJ Forum Lid
874 posts |
# Geplaatst: 9 Jul 2008 16:49 · Aangepast door: FMJ
Ik heb deze code:
js code
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);
geplakt in de adresbalk nadat ik op google zit, maar het werkt niet
|
diabolo Forum Lid
1092 posts |
# Geplaatst: 9 Jul 2008 16:56
je hebt niet de volledige code hè...
je moet dat beginstuk er ook bij doen:
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);
|
freak Forum Lid
913 posts |
# Geplaatst: 9 Jul 2008 18:42
best grappig :D
werkt vreemd genoeg niet op alle sites.
google.be doet het bijvoorbeeld niet bij mij, net als html-site.
|
diabolo Forum Lid
1092 posts |
# Geplaatst: 9 Jul 2008 18:53
Klopt,
had ik ook gemerkt.
Ik weet ook niet precies hoe het komt....
Iemand anders wel?
|
benjamin Forum Lid
1573 posts |
# Geplaatst: 9 Jul 2008 18:59
google is een achtergrondafbeelding, html-site ook
|
diabolo Forum Lid
1092 posts |
# Geplaatst: 9 Jul 2008 19:16
keej dan ligt het dus daar aan
maar hoe komt het dan dat hij het bij mijn site niet doet: www.diabolotrucs.nl
de afbeeldingen verspringen van plek en dan gebeurd er niks
|
yasmin__ Forum Lid
871 posts |
# Geplaatst: 11 Jul 2008 22:42
Haha grappig effect!
hoe kom je derop xD
|
Fl0ris Forum Lid
3 posts |
# Geplaatst: 5 Mar 2009 17:15
Lol :P
Hiermee kun je ook een Google Fast Slideshow maken:
-> Ga naar images.google.nl
-> Geef een zoekterm op (bijv 'Google Slideshow')
-> Vul de code 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.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);
Have fun!
|
Nakatomi Forum Lid
1060 posts |
# Geplaatst: 5 Mar 2009 17:26
Leuk :D
|
DNA Forum Lid
7741 posts |
# Geplaatst: 5 Mar 2009 17:29
ik zie het verschil niet met de eerste post.
|
Fl0ris Forum Lid
3 posts |
# Geplaatst: 5 Mar 2009 17:36
Ik gaf alleen een tip waar je dat script uit de eerste post kon gebruiken
|
Fl0ris Forum Lid
3 posts |
# Geplaatst: 5 Mar 2009 17:37
Maar het kan eigenlijk overal
|
jwvos Forum Lid
1392 posts |
# Geplaatst: 5 Mar 2009 19:53
Bij html-site komen de UBB plaatjes (bij een reactie plaatsen) allemaal HEEL dicht bij elkaar;)
Geinig:P
|