On Thursday 30 July 2009 01:51:52 am DJ Mangus wrote:

>
> Quite a few errors there, first off you are naming the function, you
> cannot do that if you are using a function literal.  Secondly for
> Effect.Appear you are probably best off using it directly on the DOM
> element after it's been extended with $().  And lastly your braces and
> parentheses are incorrect.  The following should work (though I
> drycoded it).
>
> document.observe("dom:loaded", function() {
>    $('show').Appear({ duration: 3.0 });
> });
>
> I'm not 100% sure that Effect.Appear will work properly with an inline
> style like that, if not then remove the inline style and call the
> document.observe thusly to hide it before rendering and then fade it
> in over 3 seconds:
>
> document.observe("dom:loaded", function() {
>    $('show').Hide();
>    $('show').Appear({ duration: 3.0 });
> });

Thank you DJ, you did get me going in the right direction. After much much 
MUCH hacking away I finally got this code to work:

Event.observe(window,'load', function() {

Effect.Appear('appear', { duration: 7.0 });

 });


-- 
Blessings,
David M.
http://www.dmcentral.net

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to