Casey
On 1/13/06,
Gregory Hill <[EMAIL PROTECTED]> wrote:
I had to make a sort of slideshow for a site I'm working on, and I was
thinking of making it into a Scriptaculous object. Anyone think of
reasons why I shouldn't? You'd have to pass in all the image urls and a
div id, with an optional delay parameter to determine how long to leave
each image up before moving on. I could also have a 'randomize' option,
when set to true it would pull the images randomly. It would cross-fade
them using Effect.Fade and Effect.Appear.
Syntax would be something like:
new Effect.Slideshow('div_id', ['image1.jpg', 'image2.jpg'...], { delay:
#.# (in seconds, with a default of 10 seconds), randomize: true/false
});
The script would create the img tag inside of the div (it'd actually
create 2, 1 hidden and 1 showing, then fade one out while the other
fades in).
What do y'all think of that idea?
If someone's already working on something like that, then cool.
Greg
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs