[Rails] Effect.appear

Sébastien Gruhier seb at itseb.com
Mon Apr 17 12:18:59 GMT 2006


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 at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails



More information about the Rails mailing list