Debian Codegraph @

dojox/image/tests/test_SlideShow.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5 <title>Testing dojox.image.SlideShow</title>
6
7 <!-- required: a default theme file -->
8 <link rel="stylesheet" id="themeStyles" href="../../../dijit/themes/tundra/tundra.css">
9 <link rel="stylesheet" href="../resources/image.css">
10
11 <style type="text/css">
12 @import "../../../dijit/tests/css/dijitTests.css";
13 </style>
14
15 <!-- required: dojo.js -->
16 <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug:true, parseOnLoad: false"></script>
17
18 <!-- do not use! only for testing dynamic themes -->
19 <script type="text/javascript" src="../../../dijit/tests/_testCommon.js"></script>
20
21
22 <script type="text/javascript">
23 dojo.require("dojox.image.SlideShow");
24 dojo.require("dojox.data.FlickrRestStore");
25 dojo.require("dojo.data.ItemFileReadStore");
26 dojo.require("dojo.parser"); // find widgets
27
28 dojo.addOnLoad(function(){
29 //Initialize the first SlideShow with an ItemFileReadStore
30 dojo.parser.parse();
31 dijit.byId('slideshow1').setDataStore(imageItemStore,
32 { query: {}, count:20 },
33 {
34 imageThumbAttr: "thumb",
35 imageLargeAttr: "large"
36 }
37 );
38
39 //INitialize the second store with a FlickrRestStore
40 var flickrRestStore = new dojox.data.FlickrRestStore();
41 var req = {
42 query: {
43 userid: "44153025@N00",
44 apikey: "8c6803164dbc395fb7131c9d54843627"
45 },
46 count: 20
47 };
48 dijit.byId('slideshow2').setDataStore(flickrRestStore, req);
49 });
50
51 </script>
52 </head>
53 <body class="tundra">
54 <h1 class="testTitle">dojox.image.SlideShow</h1>
55
56 <h2>from dojo.data.ItemFileReadStore</h2>
57 <div data-dojo-id="imageItemStore" dojoType="dojo.data.ItemFileReadStore" url="images.json"></div>
58
59 This SlideShow should display five photos, and loop. It should also
60 open a URL when the image is clicked. The widget should also resize to
61 fit the image.
62 <div id="slideshow1" dojoType="dojox.image.SlideShow"></div>
63
64 <h2>from dojox.data.FlickrRestStore</h2>
65 This SlideShow should display five photos, and not loop. It should also not
66 open a URL when the image is clicked. AutoLoading of images is also disabled.
67 The time between images in a SlideShow is 1 second. The widget should not resize to fit the image
68 <div id="slideshow2" dojoType="dojox.image.SlideShow" noLink="true" loop="false" autoLoad="false"
69 slideshowInterval="1" fixedHeight="true"></div>
70
71 </body>
72 </html>