source: Dev/trunk/src/client/dojox/layout/tests/test_RotatorContainer.html

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 3.5 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html>
3<head>
4        <title>RotatorContainer layout widget Test</title>
5        <style type="text/css">
6        @import "../../../dojo/resources/dojo.css";
7        @import "../../../dijit/themes/tundra/tundra.css";
8        @import "../../../dijit/tests/css/dijitTests.css";
9        @import "../resources/RotatorContainer.css";
10
11        #pane4 {
12                background:url(../../image/tests/images/imageHoriz2.jpg) no-repeat 0 0;
13                color:#FFF;
14        }
15
16        #pane4 h1, #pane4 p {
17                background-color:#000;
18                opacity:0.8;
19        }
20       
21        #myRotator {
22                width:350px; height:275px;
23        }
24        </style>
25
26        <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="parseOnLoad:true, isDebug:true"></script>
27        <script type="text/javascript">
28                dojo.require("dojo.parser");
29                dojo.require("dijit.form.Button");
30                dojo.require("dijit.form.ToggleButton");
31                dojo.require("dojox.layout.RotatorContainer");
32                dojo.require("dijit.layout.ContentPane");
33                dojo.require("dijit.form.ComboBox");
34        </script>
35</head>
36<body class="tundra">
37
38        <h1 class="testTitle">dojox.layout.RotatorContainer</h1>
39
40        <p>This RotatorContainer will auto-start and cycle every 2.5 seconds through each pane and stop when it gets back to the first pane.
41        You can suspend the animation by hovering over the rotator, but as soon as you mouse off, it will resume.</p>
42
43        <div style="float:left;padding:0 20px 20px 0;">
44
45                <div dojoType="dojox.layout.RotatorContainer" id="myRotator" showTabs="true" cycles="4" suspendOnHover="true" autoStart="true" transitionDelay="2500" transition="fade">
46
47                        <div dojoType="dojox.layout.RotatorPager">
48                                <button dojoType="dijit.form.Button" dojoAttachPoint="previous">Prev</button>
49                                <span dojoAttachPoint="current"></span> / <span dojoAttachPoint="total"></span>
50                                <button dojoType="dijit.form.Button" dojoAttachPoint="next">Next</button>
51                                <button dojoType="dijit.form.ToggleButton" dojoAttachPoint="playPause"></button>
52                        </div>
53
54                        <div id="pane1" dojoType="dijit.layout.ContentPane" title="1">
55                                <h1>Welcome!</h1>
56                                <p>It cycles through ContentPanes and even has transitions!</p>
57                        </div>
58
59                        <div id="pane2" dojoType="dijit.layout.ContentPane" title="2" transitionDelay="5000">
60                                <h1>This is the 2nd pane</h1>
61                                <p>Then next pane will be lazy loaded in 5 seconds!</p>
62                        </div>
63
64                        <div id="pane3" dojoType="dijit.layout.ContentPane" href="doc0.html" title="3"></div>
65
66                        <div id="pane4" dojoType="dijit.layout.ContentPane" title="4">
67                                <h1>Background pictures!</h1>
68                                <p>You can put virtually anything here.</p>
69                        </div>
70
71                </div>
72
73        </div>
74
75        <div>
76
77                <h3>Remote pager without a play/pause button</h3>
78
79                <div dojoType="dojox.layout.RotatorPager" rotatorId="myRotator">
80                        <button dojoType="dijit.form.Button" dojoAttachPoint="previous">Prev</button>
81                        <button dojoType="dijit.form.Button" dojoAttachPoint="next">Next</button>
82                        <span dojoAttachPoint="current"></span> / <span dojoAttachPoint="total"></span>
83                </div>
84
85                <h3>Remote pager with styled buttons</h3>
86
87                <div dojoType="dojox.layout.RotatorPager" class="rotatorIcons" rotatorId="myRotator">
88                        <button dojoType="dijit.form.Button" iconClass="previous" dojoAttachPoint="previous">Prev</button>
89                        <button dojoType="dijit.form.ToggleButton" iconClass="playPause" dojoAttachPoint="playPause"></button>
90                        <button dojoType="dijit.form.Button" iconClass="next" dojoAttachPoint="next">Next</button>
91                        <span dojoAttachPoint="current"></span> / <span dojoAttachPoint="total"></span>
92                </div>
93
94        </div>
95
96        <div style="clear:both;"></div>
97
98</body>
99</html>
Note: See TracBrowser for help on using the repository browser.