Forum: Ruby on Rails Effect.appear

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F734b6ca0eb2ebd01744224437a72498?d=identicon&s=25 Harm de Laat (Guest)
on 2006-04-17 13:50
(Received via mailing list)
Hi all,

Is there a way to use the onLoad event of a page to start the
Effect.appeareffect?

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
Ceee1f15591d1f61ac5bec1bc70d0062?d=identicon&s=25 Sébastien Gruhier (Guest)
on 2006-04-17 14:21
(Received via mailing list)
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 :
This topic is locked and can not be replied to.