Difference between #4 and #5 of
How to work with flash messages

Revision #5 has been created by Arsen Bespalov on Jul 4, 2011, 6:20:39 AM with the memo:

Adding russian version, and change gehi type from php to javascript.
« previous (#4) next (#6) »

Changes

Title unchanged

How to work with flash messages

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

[...]
?>
```

With these lines of code we register a piece of [jQuery](http://jquery.com/) (already included with YII) javascript code, using 'myHideEffect' as ID. It will be inserted in the jQuery's ready function (CClientScript::POS_READY). Due to the chainablity of jQuery the little script will run two effects on the .info DIV sequentially:

 
```php 
~~~
 
[javascript]
 
    
.animate({opacity: 1.0}, 3000) ```~~~ Normally this would animate the .info DIV to a full opacity within 3 seconds. But the DIV is already rendered with full opacity upon page load, so calling this effect will just cause a delay for 3 seconds.  
```php 
~~~
 
[javascript]
 
    
.fadeOut("slow") ```~~~

This is the fadeOut effect which will hide the .info DIV at slow speed.
[...]
### Links
[Russian Version](http://www.dbhelp.ru/yii-flash-msg/page/)
 
[Chinese version](http://projects.ourplanet.tk/node/82)
51 0
40 followers
Viewed: 386 451 times
Version: 1.1
Category: Tutorials
Written by: pfth
Last updated by: François Gannaz
Created on: Mar 5, 2009
Last updated: 12 years ago
Update Article

Revisions

View all history