Loading ...
Sorry, an error occurred while loading the content.

Re: [svg-developers] Change the class of an object

Expand Messages
  • Chris Lilley
    ... You seem to be trying to change the class, it would be easier surely to change the styling of that class (or just that element, or whatever). -- Chris
    Message 1 of 2 , Oct 30, 2001
    • 0 Attachment
      s.groteloh@... wrote:
      >
      > Hello,
      >
      > I have an object in a svg:
      >
      > <rect id="qm294" class="fil4 str4" x="0" y="0" width="70"
      > height="52"/>
      >
      > Now I would change the class to "fil5 str5" with JS from outsidee of
      > the svg (in a frameset):
      > parent.links.grundriss.getSVGDocument().getElementById
      > ("id1").setAttribute("class", "fil5 str5");

      You seem to be trying to change the class, it would be easier surely to
      change the styling of that class (or just that element, or whatever).

      --
      Chris
    Your message has been successfully submitted and would be delivered to recipients shortly.