PDA

View Full Version : Help With Floating Snow



Lotus577
07-27-2006, 01:47 AM
I don't know how to do it. My Snow/Bubble floating images work it is just i want to randomize the images that float upwards.
It is this one http://dynamicdrive.com/dynamicindex3/bubble.htm and i'm wondering how to change the image and make only one go up at a time but change the image that goes up into like a smaller or larger bubble/snowflake.
Help!

alexjewell
07-27-2006, 03:09 AM
Ok, not sure if I totally understand you...

But in order to change the images, you have to edit these lines of code in the javascript:



snow[0] = "bubble.gif"
snow[1] = "bubble.gif"
snow[2] = "bubble.gif"


there could be up to three different images floating around.

Then, to change the number of images at one time:



var no = 15; // image number or falling rate


And finally, to change the speed of the falling images:



var speed = 2; // the lower the number the faster the image moves


Hope this helps?

Lotus577
07-27-2006, 12:32 PM
That isn't what i'm looking for i know how to do that bt i'm just wondering how to make 1 image float up at a time and randomize that image with a different one in a cycle. I understand adding images but I only want one image to change and float up at a time.