You mean something like this, if you have proto and script loaded
function animateFlashMessage(){
// do the flash disapear (duration 5.0 sec)
var f = $('flashMessage');
if (f && f.style.display != 'hidden') {
new Effect.Parallel([
new Effect.Fade(f, {sync: true})
], { duration: 5.0
});
}
}
Event.observe(window, 'load', function () {
animateFlashMessage();
});
Effect.Parallel not needed, but you can combine different effects with it.
Instead of just fading you can also open a Modelbox() I guess.
2008/3/24, John R <[EMAIL PROTECTED]>:
>
> I am gathering I might need some sort of Ajax listener loaded on each
> page and activate it via the Controller? Help! =[
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---