| 1 | <!DOCTYPE HTML> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>dojox.widget.rotator.ThumbnailController Test</title> |
| 5 | <style type="text/css"> |
| 6 | @import "../../../dojo/resources/dojo.css"; |
| 7 | @import "../../../dijit/tests/css/dijitTests.css"; |
| 8 | |
| 9 | .rotator{ |
| 10 | background-color:#fff; |
| 11 | border:solid 1px #e5e5e5; |
| 12 | width:500px; |
| 13 | height:375px; |
| 14 | overflow:hidden; |
| 15 | } |
| 16 | .rotator img{ |
| 17 | background-color:#fff; |
| 18 | width:500px; |
| 19 | height:375px; |
| 20 | overflow:hidden; |
| 21 | } |
| 22 | .dojoxRotatorThumb{ |
| 23 | display:inline-block; |
| 24 | width:240px; |
| 25 | height:180px; |
| 26 | margin:2px; |
| 27 | } |
| 28 | .dojoxRotatorThumb img{ |
| 29 | width:240px; |
| 30 | height:180px; |
| 31 | } |
| 32 | .dojoxRotatorThumbSelected{ |
| 33 | border:solid 2px #00f; |
| 34 | margin:0; |
| 35 | } |
| 36 | </style> |
| 37 | |
| 38 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, selectorEngine: 'acme'"></script> |
| 39 | <script type="text/javascript"> |
| 40 | require([ |
| 41 | "dojo/parser", |
| 42 | "dojo/domReady!", |
| 43 | "dojox/widget/AutoRotator", |
| 44 | "dojox/widget/rotator/Fade", |
| 45 | "dojox/widget/rotator/ThumbnailController" |
| 46 | ], function(parser) { |
| 47 | parser.parse(); |
| 48 | }) |
| 49 | </script> |
| 50 | </head> |
| 51 | <body> |
| 52 | |
| 53 | <h1 class="testTitle">dojox.widget.rotator.ThumbnailController Test</h1> |
| 54 | |
| 55 | <div class="test1"> |
| 56 | |
| 57 | <div data-dojo-type="dojox/widget/AutoRotator" class="rotator" |
| 58 | data-dojo-id="myRotator" |
| 59 | data-dojo-props="duration: 1000, transition: 'dojox.widget.rotator.crossFade'"> |
| 60 | <img src="../../image/tests/images/chris1_lg.jpg" thumbsrc="../../image/tests/images/chris1_sm.jpg" alt="Image 1"/> |
| 61 | <img src="../../image/tests/images/chris2_lg.jpg" thumbsrc="../../image/tests/images/chris2_sm.jpg" alt="Image 2"/> |
| 62 | <img src="../../image/tests/images/chris3_lg.jpg" thumbsrc="../../image/tests/images/chris3_sm.jpg" alt="Image 3"/> |
| 63 | </div> |
| 64 | |
| 65 | <div data-dojo-type="dojox/widget/rotator/ThumbnailController" |
| 66 | data-dojo-props="rotator: myRotator"></div> |
| 67 | |
| 68 | </div> |
| 69 | |
| 70 | </body> |
| 71 | </html> |