Or, if the div is updated without a page refresh, you can simply  
chain on a fade with a delay attribute:

//inside your onComplete function:
$('notification').update(transport.responseText).fade({delay: 1.0});


On Nov 6, 2008, at 9:53 AM, Alex Mcauley wrote:

> you can observe the window to load and  set a timeout to execute  
> Effect.Fade
> Regards
> Alex
> ----- Original Message -----
> To: "Prototype & script.aculo.us" <prototype- 
> Sent: Thursday, November 06, 2008 2:34 PM
> Subject: [Proto-Scripty] Setting a <div> to "decay" on page load?
>> Not quite sure how to phrase this.  I am a new scriptaculous user, I
>> am comfortable using scriptaculous and prototype when I use the demos
>> as a basis for what I am doing.  However, I am working on adding ajax
>> capabilities into a CMS that I have built.  In some instances I have
>> set a <div> with a "notification" value after posting a form etc...
>> How would I set a "decay" time on this <div> using scriptaculous so
>> that it gradually fades to display: none after the initial page load?
>> Is ther an onLoad ability?
>> Thanks,
>> Ryan
> >

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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to