I am not sure that an effect on body works
you should do something like
<html>
<head>
<%= javascript_include_tag :defaults %>
</head>
<body onload="new
Effect.Appear(''body_content'');">
<div id=''body_content''
style=''display:none''>
My Body
</div>
</body>
</html>
Le 17 avr. 06 ? 13:48, Harm de Laat a ?crit :
> Hi all,
>
> Is there a way to use the onLoad event of a page to start the
> Effect.appear effect?
>
> I''m trying like this, unfortunatly this does not work:
>
>
> <html>
> <head>
> <%= javascript_include_tag :defaults %>
> </head>
> <body onload="new Effect.Appear(this);">
> My Body
> </body>
> </html>
>
> Any idea how to get this to work?
>
> Kind regards,
>
> Harm de Laat
>
>
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails