Hello.

I'm writing the programm where I need to create images using SVG and 
Javascript:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>

<svg onload="makeShape(evt)"
     xmlns="http://www.w3.org/2000/svg";>
 <script type="text/javascript"><![CDATA[
 {
     var svgns = "http://www.w3.org/2000/svg";;

    function makeShape(evt) 
    {
      if ( window.svgDocument == null )
          svgDocument = evt.target.ownerDocument;

      var shape = svgDocument.createElement("image");
            shape.setAttribute("x", 10);
            shape.setAttribute("y", 10);
            shape.setAttribute("height",  51);
            shape.setAttribute("width", 43); 

      shape.setAttribute("xlink:href","some_pic.jpg");
    
      svgDocument.documentElement.appendChild(shape);

    }
 }
]]>
</script>
</svg>

But image isn't created. What's wrong in our code?


Thank you very much.

  




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to