| 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 the Image Gallery</title> |
| 6 |
|
| 7 |
|
| 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 |
|
| 16 |
<script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug:true, parseOnLoad: true"></script> |
| 17 |
|
| 18 |
|
| 19 |
<script type="text/javascript" src="../../../dijit/tests/_testCommon.js"></script> |
| 20 |
|
| 21 |
|
| 22 |
<script type="text/javascript" src="../ThumbnailPicker.js"></script> |
| 23 |
<script type="text/javascript" src="../SlideShow.js"></script> |
| 24 |
<script type="text/javascript" src="../Gallery.js"></script> |
| 25 |
<script type="text/javascript" src="../../data/GoogleSearchStore.js"></script> |
| 26 |
|
| 27 |
<script type="text/javascript"> |
| 28 |
dojo.require("dojox.data.GoogleSearchStore"); |
| 29 |
dojo.require("dojo.parser"); // find widgets |
| 30 |
|
| 31 |
dojo.addOnLoad(function(){ |
| 32 |
var googleImageStore = new dojox.data.GoogleImageSearchStore(); |
| 33 |
var req = { |
| 34 |
query: { |
| 35 |
text: "badminton" |
| 36 |
}, |
| 37 |
count: 32 |
| 38 |
}; |
| 39 |
dijit.byId('slideshow1').setDataStore(googleImageStore, req); |
| 40 |
}); |
| 41 |
</script> |
| 42 |
</head> |
| 43 |
<body class="tundra"> |
| 44 |
<h1 class="testTitle">dojox.image.SlideShow</h1> |
| 45 |
|
| 46 |
<h2>From GoogleImageSearchStore:</h2> |
| 47 |
<div id="slideshow1" dojoType="dojox.image.SlideShow" imageWidth="700" imageHeight="500" |
| 48 |
imageThumbAttr="tbUrl" imageLargeAttr="unescapedUrl" titleAttr="titleNoFormatting"></div> |
| 49 |
|
| 50 |
</body> |
| 51 |
</html> |