<html>
<head>
<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("dojox.gfx");
function testIt() {
var s = dojox.gfx.createSurface("my", 320, 240);
s.createLine({x1:10,y1:10, x2:310,y2:230}).setStroke({color : "#ff0000"});
}
</script>
</head>
<body onLoad="testIt();">
<div id="my"></div>
</body>
</html>
|