Project

General

Profile

Statistics
| Revision:

root / trunk / web / dojo / dojox / widget / rotator / Slide.js

History | View | Annotate | Download (900 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.Slide"]){
9
dojo._hasResource["dojox.widget.rotator.Slide"]=true;
10
dojo.provide("dojox.widget.rotator.Slide");
11
(function(d){
12
var _1=0,_2=1,UP=2,_3=3;
13
function _4(_5,_6){
14
var _7=_6.node=_6.next.node,r=_6.rotatorBox,m=_5%2,s=(m?r.w:r.h)*(_5<2?-1:1);
15
d.style(_7,{display:"",zIndex:(d.style(_6.current.node,"zIndex")||1)+1});
16
if(!_6.properties){
17
_6.properties={};
18
}
19
_6.properties[m?"left":"top"]={start:s,end:0};
20
return d.animateProperty(_6);
21
};
22
d.mixin(dojox.widget.rotator,{slideDown:function(_8){
23
return _4(_1,_8);
24
},slideRight:function(_9){
25
return _4(_2,_9);
26
},slideUp:function(_a){
27
return _4(UP,_a);
28
},slideLeft:function(_b){
29
return _4(_3,_b);
30
}});
31
})(dojo);
32
}