In my svg file given below codes is there. I need to
change the alpha to the current position. that is when
the mouse button is clicked area.

<defs>
        <radialGradient  id="pincolor">
                <stop offset="0%" stop-color="white"/>  
                        <stop offset="100%" stop-color="blue"/>  
        </radialGradient> 
        <g id="alpha_locate">  
                <path d="M0 0 L1500,-4000" stroke-width="1"
stroke="black" fill="none"/>  
        <circle cx="1500" cy="-4000" r="1400"
fill="url(#pincolor)"/></g>
</defs>
<g id="alpha">  
                <g>
                        <g transform="translate(0,0)"> 
                                <use xlink:href="#alpha_locate"/>
                        </g> 
                </g>
</g>

I have changed the pin location from following code.

ss=svgContentsDocument.getElementById("alpha");
gnodes=ss.getElementsByTagName("g");
gnode=gnodes.item(1);
alert(gnode.getAttribute("transform"));
gnode.setAttribute("transform","translate("+x+","+y+")");

But the translate position is not changed and pin is
also not visible. Please guide me whats the wrong in
my code.

Regards
Raghu.


                
__________________________________________________________
How much free photo storage do you get? Store your friends 'n family snaps for 
FREE with Yahoo! Photos http://in.photos.yahoo.com


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