39b657a76db697b3ef4e11ec8b7e96f46befb88d.svn-base 907 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2. "http://www.w3.org/TR/html4/strict.dtd">
  3. <html>
  4. <head>
  5. <title>widget infrastructure test</title>
  6. <script type="text/javascript" src="../../dojo/dojo.js"
  7. djConfig="isDebug: true, debugAtAllCosts: true"></script>
  8. <script type="text/javascript">
  9. dojo.require("dijit.form.Button");
  10. </script>
  11. <style type="text/css">
  12. @import "../../dojo/resources/dojo.css";
  13. @import "../themes/tundra/tundra.css";
  14. @import "css/dijitTests.css";
  15. body { padding: 5em; }
  16. </style>
  17. </head>
  18. <body class="tundra">
  19. <button id="b1" style="background: yellow;">button #1</button>
  20. <button id="b2" style="background: orange;">button #2</button>
  21. <button id="b3" style="background: violet;">button #3</button>
  22. <script>
  23. for(var i=1; i<=3; i++){
  24. var node = dojo.byId("b"+i);
  25. var myButton = new dijit.form.Button(null, node);
  26. }
  27. </script>
  28. </body>
  29. </html>