There seems to be some question here about the number of images with this latest code. First you have to understand that there are two ways to count images:
1.) The number of different images
2.) The number of images falling at once
So you could have only one image and have 10 of them falling at a time. The defaults in the script are currently set to 6 images falling 18 at a time:
Code:
rise_fall.prototype = {
defaults: { //these items may be set in the on page call
dir: 1, // Set the direction (1 for down, -1 for up)
speed: 20, // 12 to whatever (60 is pretty slow) higher numbers are slower
Amount: 18, // Smoothness depends on image file size, the smaller the size the more you can use!
sway: 6, // Set amount of left/right swaying of objects (default = 10), higher numbers produce more sway
zIndex: 1, // Set z-index value for image overlay
//Pre-load your image(s) below! 6 is an optimal number for variety. Use just one for uniformity.
grphcs: [
"al.gif",
"bl.gif",
"cl.gif",
"dl.gif",
"el.gif",
"fl.gif" //<-- no trailing comma after last image
]
},
See, Amount is 18, and there are 6 images. You can set these however you want. I think that what JRR might want is:
Code:
rise_fall.prototype = {
defaults: { //these items may be set in the on page call
dir: 1, // Set the direction (1 for down, -1 for up)
speed: 20, // 12 to whatever (60 is pretty slow) higher numbers are slower
Amount: 36, // Smoothness depends on image file size, the smaller the size the more you can use!
sway: 6, // Set amount of left/right swaying of objects (default = 10), higher numbers produce more sway
zIndex: 1, // Set z-index value for image overlay
//Pre-load your image(s) below! 6 is an optimal number for variety. Use just one for uniformity.
grphcs: [
"http://www.jr-richscooterdoc.com/FLeaf/Leaf1.png",
"http://www.jr-richscooterdoc.com/FLeaf/Leaf2.png",
"http://www.jr-richscooterdoc.com/FLeaf/Leaf3.png",
"http://www.jr-richscooterdoc.com/FLeaf/Leaf4.png",
"http://www.jr-richscooterdoc.com/FLeaf/Leaf5.png",
"http://www.jr-richscooterdoc.com/FLeaf/Leaf6.png",
"http://www.jr-richscooterdoc.com/FLeaf/Leaf7.png",
"http://www.jr-richscooterdoc.com/FLeaf/Leaf8.png",
"http://www.jr-richscooterdoc.com/FLeaf/Leaf9.png",
"http://www.jr-richscooterdoc.com/FLeaf/Leaf10.png",
"http://www.jr-richscooterdoc.com/FLeaf/Leaf11.png" //<-- no trailing comma after last image
]
},
But remember that the defaults are overridden in the call, and in the call on the demo we have:
Code:
leaves = new rise_fall({speed: 60, sway: 20, Amount: 10, accumulate: 255});
So, either make that 36 as well or get rid of it.
Bookmarks