<html>
<head>
<link rel="StyleSheet" type="text/css"
href="js/dojo/dijit/themes/tundra/tundra.css">
<script type="text/javascript">
var djConfig = {
baseScriptUri : "js/dojo/",
parseOnLoad : true
};
</script>
<script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
<script>
dojo.require("dojo.parser");
dojo.require("dijit.ProgressBar");
function show() {
var myDijit = new dijit.ProgressBar({
id : "pb1", places : 0, progress : "20%", maximum : 100
});
dojo.byId("my").appendChild(myDijit.domNode);
window.setInterval(function () {
var pb1 = dijit.byId("pb1");
pb1.update({progress : ++pb1.progress});
}, 500);
}
</script>
</head>
<body class="tundra" onLoad="show();">
<div id="my"> </div>
</body>
</html>