以文本方式查看主题 - 计算机科学论坛 (http://bbs.xml.org.cn/index.asp) -- 『 SVG/GML/VRML/X3D/XAML 』 (http://bbs.xml.org.cn/list.asp?boardid=21) ---- 帮帮忙 (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=36371) |
-- 作者:zwwname -- 发布时间:8/3/2006 11:45:00 PM -- 帮帮忙 哪位高手能帮我看一下我这段代码(我是想实现添加一个接点但实现不了) <svg> <script language="JavaScript"><![CDATA[ function operate_Dom(){ var shape = document.createElement("rect "); shape.setAttribute("x", 80); shape.setAttribute("y", 77); shape.setAttribute("width", 100); shape.setAttribute("height", 200); shape.setAttribute("rx", 5); shape.setAttribute("ry", 5); shape.setAttribute("style", "fill:blue"); shape.setAttribute("fill-opacity", "60"); document.documentElement.appendChild(shape); } ]]></script> <g id="UIadd" onclick="operate_Dom()"> <rect id="btnAdd" x="20" y="360" width="90" height="30" rx="5" ry="5" style="fill:grey"/> <text id="txtAdd" x="65" y="378" style="fill:white;text-anchor: middle"> 添加审批节点 </text> </g> </svg> |
-- 作者:tamefox -- 发布时间:8/4/2006 8:50:00 AM -- var shape = document.createElement("rect"); 把“”中的空格去掉~ |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
78.125ms |