Mech7 a écrit :
> Is it possible to create effects on elements with that classname
> instead of by id? with scriptaculous.
Er…
Instead of:
new Effect.Blah('id', options);
You could go:
$$('.yourClassName').each(function(element) {
new Effect.Blah(element, options);
});
Or if the effect has a builtin method for it (say, Fade):
$$('.yourClassName').invoke('blah', options);
--
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---