Jorge Mario G. Mazo wrote:> Hi there
> I would like to use the effect toggle_blind
> but when the page is loaded it loads with the effect blinddown, so it
> shows the info page, I would like to load the page with all info
> pages hidden (blindedup) andy ideas about how to this with the helper?
>
> thanks in advance
Sure, you could do something like, write a function that blinds down all
the objects you want and set it to run with an onload function, such as:
<script type="text/javascript">
function blindStuffDown() {
new Effect.BlindDown(''my_div_1'');
new Effect.BlindDown(''my_div_2'');
new Effect.BlindDown(''my_div_3'');
}
</script>
Then you could do a simple "<body
onload="blindStuffDown()">". Also, be
sure a style="display:none;" property is set to the div''s you
want to
blind down.
Let me know if that helps!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---