Matthew Miller

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromMatthew Miller
ToMe
SubjectFalling Snow Script
Date12 September 2004 21:43
Hi, i was wondering how in you'r falling snow script i could make multiple
image's float down instead of just 1? I don't know what code or seperator i
need to put next to the first image, or if its even possible. Thank you


-QuickStar
FromMe
ToMatthew Miller
SubjectRe: Falling Snow Script
Date13 September 2004 08:15
Matthew,

I have not made it possible to do this in the current script, but it is a
very simple change that you could make.

In the source of my script, change both occurences of
src="'+pictureSrc+'"
to
src="'+pictureSrc[x]+'"

Then instead of saying
var pictureSrc = 'snowflake.gif';
you can say this (if you have 10 snowflakes, you must have 10 array entries)
var pictureSrc = ['snowflake.gif','box.gif','leaf.gif','snowflake.gif',etc];

Hope this is useful

Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.