| 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>dojox.fx.highlight</title> |
| 6 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug:true"></script> |
| 7 | <script type="text/javascript"> |
| 8 | dojo.require("dojox.fx"); |
| 9 | dojo.require("dojox.fx.ext-dojo.NodeList"); |
| 10 | </script> |
| 11 | <style type="text/css"> |
| 12 | @import "../../../dojo/resources/dojo.css"; |
| 13 | @import "../../../dijit/themes/dijit.css"; |
| 14 | @import "../../../dijit/themes/tundra/tundra.css"; |
| 15 | @import "../../../dijit/tests/css/dijitTests.css"; |
| 16 | </style> |
| 17 | </head> |
| 18 | <body class="tundra"> |
| 19 | |
| 20 | <h1 class="testTitle">dojox.fx.highlight tests</h1> |
| 21 | |
| 22 | <div id="attention" style="position:absolute; left:300px; top:200px; padding:10px;" > |
| 23 | <h3>This is the default highlight</h3> |
| 24 | </div> |
| 25 | |
| 26 | <div id="attention2" style="position:absolute; left:300px; top:80px; padding:10px;" > |
| 27 | <h3>BRING ATTENTION HERE!</h3> |
| 28 | </div> |
| 29 | |
| 30 | <div id="attention3" style="position:absolute; left:350px; top:150px; padding:10px; background-color:#CCCCCC" > |
| 31 | <h3>Highlight me</h3> |
| 32 | </div> |
| 33 | |
| 34 | <a href="javascript:void(0)" onClick="dojox.fx.highlight({node:'attention'}).play()">test #1 (default)</a> |
| 35 | <br> |
| 36 | <a href="javascript:void(0)" onClick="dojox.fx.highlight({node:'attention', repeat:1}).play()">test #2 (default - play twice)</a> |
| 37 | <br> |
| 38 | <a href="javascript:void(0)" onClick="dojox.fx.highlight({node:'attention2', color:'#0066FF', duration:800}).play()">test #3</a> |
| 39 | <br> |
| 40 | <a href="javascript:void(0)" onClick="dojox.fx.highlight({node:'attention3', color:'#0066FF', duration:800}).play()">test #4</a> |
| 41 | <br> |
| 42 | <a href="javascript:void(0)" onClick="dojo.query('a').highlight().play(100)">highlight via dojo.query</a> |
| 43 | |
| 44 | |
| 45 | </body></html> |