Posted on 2007-07-05 09:32
G_G 閱讀(498)
評論(0) 編輯 收藏 所屬分類:
javascript
1. 開始


<!DOCTYPE?html?PUBLIC?"-//W3C//DTD?XHTML?1.0?Transitional//EN"?"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
?<html?xmlns="http://www.w3.org/1999/xhtml">
?<head>
?<meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"?/>
?<title>TEST</title>
?<script?type="text/javascript"?src="wz_jsgraphics.js"></script>
?</head>
?<body>
???<div?id="myCanvas"?style="position:relative;height:250px;width:100%;"></div>?
?</body>
</html>
<script?type="text/javascript">
<!--
var?jg?=?new?jsGraphics("myCanvas");
jg.setColor("#00aaaa");
jg.fillArc(100,200,200,150,0,20);
jg.paint();
//-->
</script>?