- From: Dean Jackson <dean@w3.org>
- Date: Thu, 31 May 2001 22:44:13 +1000
- To: www-svg@w3.org
Only subscribers can post messages. Dean ----- Forwarded message from philippe@solnet.ch ----- X-Envelope-From: www-svg-request@tux.w3.org Thu May 31 08:31:23 2001 From: philippe@solnet.ch To: www-svg@w3.org Old-Date: Thu, 31 May 2001 14:31:01 +0100 X-Diagnostic: Not on the accept list Subject: [Moderator Action] Attributes, Objects??? X-Diagnostic: Mail coming from a daemon, ignored X-Envelope-To: www-svg X-UIDL: 5d9436717209902bccec708ffde3b7dd Dear Sir, how can I change the attributes in another object? Why didn't work this example? <svg width="300" height="300"> <script><![CDATA[ function MouseClick(target_id) { var svgdoc = document.getSVGDocument(); var svgobj = svgdoc.getElementById(target_id); if (svgobj == null) { alert("Obj is a null!"); } else { svgobj.setAttribute('cx', '100'); } ]]></script> <circle id="circle1" cx="40" cy="50" r="11" style="fill:rgb(100,0,0)" onclick="MouseClick('circle2')"/> <circle id="circle2" cx="40" cy="100" r="11" style="fill:rgb(0,100,0)" onclick="MouseClick('circle1')"/> </svg> Thanks for the clarification Phil ----- End forwarded message -----
Received on Thursday, 31 May 2001 08:46:19 UTC