hi there,
This will ensure that all code only runs once the dom is fuly loaded:
document.observe(''dom:loaded'', function() {
new Effect.fade ....
}
On Feb 1, 11:27 pm, ert <tetri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> hello
> i want like to make fade effects on images but one thing that gots me
> wondering is how do i get to have those effects start processing only
> when the images have been loaded in the document? i just read
> something about the load event that uses the window object but still
> dont get it how ???
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---