kouejou schrieb:

> Morning,
>
> I try to insert the image into my svg document.
> this code work correctly in windows navigator or not work in mozilla
> gecko natif svg.
>
> the execution in this code not give the error and not give the image.
>
> i wait any subjestion. thanks
>
> <?xml version="1.0"?>
>
> <svg id="affiche" x="0" y="0" width="500" height="500"     
> xmlns:xlink="http://www.w3.org/1999/xlink";
> xmlns="http://www.w3.org/2000/svg";>
>       <script language="javascript">
>             function ajoutImage(evt){
>                   svg=evt.target.ownerDocument;
>                   groupe=svg.getElementById("groupe");
>                   img=svg.createElementNS
> ("http://www.w3.org/2000/svg","image";);
>                   img.setAttribute("x",10);
>                   img.setAttribute("y",10);
>                   img.setAttribute("id","testImage");
>                   img.setAttribute("width",100);
>                   img.setAttribute("height",100);
>                   img.setAttributeNS
> ("http://www.w3.org/1999/xlink";, "href","aff.gif");
>                   img.style.setProperty
> ("visibility","visible","important");     
>                   groupe.appendChild(img);
>                              
>             }
>       </script>
>
>       <g id="groupe">
>      
>       <image xlink:href="aff.gif" x="0" y="0" width="20"
> height="20" onclick="ajoutImage(evt)"/>
>
>       </g>
>
> </svg>
>

hi kouejou

your code works for me maybe you need a later build, or its a new 
regression.
i'm using :
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050812 
Firefox/1.0+

if your build is older than that, just download a newer build, that 
should fix the problem.
hth
Holger



------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hh9s1o8/M=362131.6882499.7825260.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1124709703/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

-----
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