Try this:

 

img.setAttributeNS("http://www.w3.org/1999/xlink","href";, "image2.jpg");

 

  _____  

From: kelumsvg [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 13, 2004 8:19 PM
To: [EMAIL PROTECTED]
Subject: [svg-developers] dynamic images

 

hi, 
i have embedded image in my svg file.the coding is like follows 

<image id="img" xlink:href='image1.jpg' .........>          //image1.
jpg 

when i click a button i want to change that image to image2.jpg 

for that i used. 


img=svgdoc.getElementById("img") 
img.setAttributeNS(null,'xlink:href','image2.jpg'); 

this does not give errors.but image does not change.image1.jpg remains 
as same. 
pls help me 
regards, 
kelum.



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





Yahoo! Groups Sponsor

ADVERTISEMENT
click here
<http://us.ard.yahoo.com/SIG=129gk14q9/M=295196.4901138.6071305.3001176/
D=groups/S=1706030389:HM/EXP=1095218430/A=2128215/R=0/SIG=10se96mf6/*htt
p:/companion.yahoo.com> 

 
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=group
s/S=:HM/A=2128215/rand=637823945> 

 

  _____  

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]
<mailto:[EMAIL PROTECTED]> 
          
*       Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> . 



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/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