On Jul 25, 2007, at 7:23 AM, cell wrote:
>
> hi all;
>
> i tried a simple thing and searched the group, but w/o success. and
> the problems seems to be lame.
> i want a hidden DIV to appear (fade in) when i click another DIV. all
> scriptaculous effects work fine if the target DIV is visible. once I
> apply the "display: hidden" CSS attribute, the DIV remians hidden.
> so i guess there must be another way to hide it before it can be made
> visible by scriptaculous.
>
> any help would be appreciated.
> thanks in davance.
>
>
How exactly are you hiding the item? If you are using external CSS to
do this, then you have to change that. Try using inline style
declaration on the element itself. Another thing to do is to set the
visibility on page load. This may mean a flash of visible content if
your page is large, but it also fixes the problem of No Script = Can't
See It.
Event.observe(window,'load',function(){ $('myDooDad').hide(); });
Walter
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---