T
toronto
I'm stumped. I'm playing with a javascript that produces falling snowflakes
on screen. I got the script from this author:
http://thelocust.org/projects/snow2/
If I hotlink to the exploding flake image on the author's site, everything
works as intended: clicking a flake explodes it once, and at some point a
new white flake is produced at the top of the screen to replace the exploded
one.
However, if I save his exploding image to my own web directory and link to
it, as my second test, then clicking a flake causes it to explode
indefinitely in a repeating loop. Bizarre.
Third test, I edited the GIF to not loop it and to end on a blank
transparent frame, so that a flake will explode only once. The problem here
is that after you explode some flakes, they are never replaced by new ones.
No new white flakes appear. In fact, I think the images are still floating,
but it's always the final blank frame of my edited exploding image. Those
are never replaced by the white flake image.
See if you can figure this one out. What I want is the behaviour in Test 1,
but using a local file of the exploding image rather than having to hotlink
to the file off the author's site.
See my tests here: http://public.fiercefocus.com/SnowTests/
on screen. I got the script from this author:
http://thelocust.org/projects/snow2/
If I hotlink to the exploding flake image on the author's site, everything
works as intended: clicking a flake explodes it once, and at some point a
new white flake is produced at the top of the screen to replace the exploded
one.
However, if I save his exploding image to my own web directory and link to
it, as my second test, then clicking a flake causes it to explode
indefinitely in a repeating loop. Bizarre.
Third test, I edited the GIF to not loop it and to end on a blank
transparent frame, so that a flake will explode only once. The problem here
is that after you explode some flakes, they are never replaced by new ones.
No new white flakes appear. In fact, I think the images are still floating,
but it's always the final blank frame of my edited exploding image. Those
are never replaced by the white flake image.
See if you can figure this one out. What I want is the behaviour in Test 1,
but using a local file of the exploding image rather than having to hotlink
to the file off the author's site.
See my tests here: http://public.fiercefocus.com/SnowTests/