root / trunk / web / dojo / dojox / widget / rotator / Fade.js
History | View | Annotate | Download (693 Bytes)
1 | 9 | andrej.cim | /*
|
---|---|---|---|
2 | Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||
3 | Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||
4 | see: http://dojotoolkit.org/license for details
|
||
5 | */
|
||
6 | |||
7 | |||
8 | if(!dojo._hasResource["dojox.widget.rotator.Fade"]){ |
||
9 | dojo._hasResource["dojox.widget.rotator.Fade"]=true; |
||
10 | dojo.provide("dojox.widget.rotator.Fade");
|
||
11 | dojo.require("dojo.fx");
|
||
12 | (function(d){
|
||
13 | function _1(_2,_3){ |
||
14 | var n=_2.next.node;
|
||
15 | d.style(n,{display:"",opacity:0}); |
||
16 | _2.node=_2.current.node; |
||
17 | return d.fx[_3]([d.fadeOut(_2),d.fadeIn(d.mixin(_2,{node:n}))]); |
||
18 | }; |
||
19 | d.mixin(dojox.widget.rotator,{fade:function(_4){ |
||
20 | return _1(_4,"chain"); |
||
21 | },crossFade:function(_5){ |
||
22 | return _1(_5,"combine"); |
||
23 | }}); |
||
24 | })(dojo); |
||
25 | } |