pouët.net

browser demo effect

category: general [glöplog]
darn! tested on ie and opera, it's that whitespace thing again,
try this one or under http://www.rafb.net/paste/results/svX5d920.html
Quote:

javascript:S=l='';h=document;b=h.body;function C(){for(i=0;i<l;i++){T=R[i].style;p=parseInt(T.left);T.left =(p<1)?p+l*30+999:p-5;T.top=100+Math.sin(p/100)*100}}O=h.getElementsByTagName('a')[0];while(O.tagName!='BR'){O=O.nextSibling; S+=(O.nodeType<2)?O.innerHTML:O.nodeValue}l=S.length;R=new Array(l);for(i=0;i<l;i++){d=h.createElement('div');N=d.style; d.innerHTML=S.charAt(i);N.position='absolute';N.fontSize=30;N.left=i*30+999;R[i]=d;b.insertBefore(d,b.firstChild)}setInterval('C()',9);void(0)

Sorry for the inconvenience...
added on the 2006-10-24 14:37:43 by jxn jxn
works for opera now, Ctrl-CLB.
for ie:
wordwrapping strikes again, at least spaces are easy to spot this time:

; d.innerHTML <---
R[i] =d <---

is there a max length for this in ie? that sucker stops interpreting for string longer than 500 characters...
added on the 2006-10-24 14:45:06 by jxn jxn
the code on the paste link works fine in firefox, cool! :D
We almost got a proper cracktro :D
added on the 2006-10-24 15:07:13 by mrdoob mrdoob
Yeah, except you're all doing gay scripting.

No wonder you people never get around to beating joke demos.
added on the 2006-10-24 22:59:54 by Shifter Shifter
shftr: shut the fuck up or do something better.
added on the 2006-10-24 23:48:22 by mrdoob mrdoob
wow, touched a nerve there, didn't I
added on the 2006-10-25 12:15:02 by Shifter Shifter
not really, you're just annoying and, for some reason, you enjoy making lose people's time. Again, less talking an more prods (and no more fun ones, the things are fun on the beginning, limp ninja isn't fun anymore, I miss mnemonix productions...
added on the 2006-10-25 13:02:08 by mrdoob mrdoob
You make it sound like he's no longer active. I guess you simply don't get it.

"limp ninja isn't fun anymore" is a good t-shirt though.
added on the 2006-10-25 13:41:34 by Shifter Shifter
I know, he isn't inactive.
added on the 2006-10-25 13:48:53 by mrdoob mrdoob
hehehe, cute shit :) someone should mush it all into one script.
added on the 2006-10-25 13:51:42 by gencha gencha
gencha: wouldn't it make a very cheesy prod ? the favelet-fx are nice in themselves but making a whole prod out of them might make 1989 call to get its effects back, no ?
added on the 2006-10-25 14:25:06 by p01 p01
And with good reason too. Would you guys please shape the hell up and create demos? I would, but I'm too busy harassing Trace here ;)
added on the 2006-10-26 00:16:29 by Shifter Shifter
sorry to ask this butm
are all of these codes just to put in the address barl? Or can they actually be put into the source code of a site?
added on the 2006-10-28 06:13:19 by Sil Sil
What do you think? Of course you can put them on sites. It's standard javascript!
added on the 2006-10-28 10:15:44 by xernobyl xernobyl
thx!!
added on the 2006-10-28 16:39:58 by Sil Sil
thx for the answer :) actually, I have 1 more question- if you put it into the source code for a page, is there anyway to stop it after a while? cuz it looks cool, but I'd like for it to stop after a bit, so the content of the page can be read. I'd appreciate any help
added on the 2006-10-28 16:42:05 by Sil Sil
Time to learn some javascript then ;) (not as easy as copy/paste)
added on the 2006-10-28 17:17:40 by mrdoob mrdoob
hi, how do you actually code this for a page? I added the code conventions for javascript:
Code: <script language="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=; DIL=document.images; 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) // --> </script>


but it's not working. So, um, how do you do it? please, thanks
added on the 2006-11-11 21:16:36 by Curie Curie
SOMEONE HELP THE POOR MAN!
added on the 2006-11-11 21:42:12 by LiraNuna LiraNuna
The code looks weird to me.

DI=; ?
DI.length; ?
i<DIL ?

what?!
added on the 2006-11-11 21:54:59 by mrdoob mrdoob
javascript:while(1)alert('jml rules!');
added on the 2006-11-11 21:58:17 by Sverker Sverker
the DI and DI.length I just copied from the first post on this thread. maybe I copied it here wrong though. it's this-
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)

but anyway, sorry, what does "while(1)alert('jml rules!');" do?? thanks
added on the 2006-11-11 22:38:42 by Curie Curie
erm...
added on the 2006-11-12 00:12:02 by mrdoob mrdoob
oÕ ?!
added on the 2006-11-12 00:15:20 by p01 p01
um, ok, that was pretty random, lol
but anyway, would anyone please please know how to set this in a page?
added on the 2006-11-12 04:02:31 by Curie Curie

login