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

Re: Replace an image with another

Expand Messages
  • xyz1332003
    Thanks Olaf. That was much simpler than I was expecting. I wasn t even sure this was possible.
    Message 1 of 3 , Oct 2, 2009
    • 0 Attachment
      Thanks Olaf.

      That was much simpler than I was expecting. I wasn't even sure this was possible.


      --- In svg-developers@yahoogroups.com, Olaf Schnabel <oschnabel@...> wrote:
      >
      > Hi xyz,
      >
      > you have to define the variable circle in your function replaceRect.
      > This code should work:
      >
      > var rect = evt.target;
      > var circle = document.getElementById("circle");
      > rect.parentNode.replaceChild(circle,rect);
      >
      > Best regards
      > Olaf
    Your message has been successfully submitted and would be delivered to recipients shortly.