hi, thanks for your help. i tried it. but i cannot access the inner rect with in the symbol. looking forward your help. regards, kelum. --- In [EMAIL PROTECTED], "pilatfr" <[EMAIL PROTECTED]> wrote: > > --- In [EMAIL PROTECTED], "kelumsvg" <[EMAIL PROTECTED]> > wrote: > > <symbol id="pool_indoor" overflow="visible" transform="scale(1)"> > <rect x="0" y="-2.5" rx="2" ry="2" width="32" height="35"/> > ............... > </symbol> > <use xlink:href="#pool_indoor" fill="white" > onclick="evt.target.setAttribute('fill','red')"/> > > Michel > > > > > hi, > > > > i have user defined symbol as follows > > > > > > > > <symbol id="pool_indoor" overflow="visible" transform="scale > (1)"> > > > > <rect x="0" y="-2.5" rx="2" ry="2" width="32" height="35" > > > > style="fill:white"/> > > > > <path d="M6 7.5 l0 20 l20 0 l0 -20" style="fill:none;stroke:rgb > > > > (50,150,255);stroke-width:3"/> > > > > <path d="M1 10 l15 -10 l15 10" style="fill:none;stroke:rgb > > > > (50,150,255);stroke-width:3"/> > > > > <path d="M6 15 q5,-5 10,0 t10 0 l0 12.5 l-20 0z" > style="fill:rgb > > > > (50,150,255);"/> > > > > </symbol> > > > > > > > > then i invoke this symbol using > > > > > > > > <use xlink:href="#pool_indoor" /> > > > > > > > > here i want to change the color of the symbol(rectangle with in > > > the > > > > symbol) when click on it. > > > > > > > > how can i do this . > > if you can show me some simple example > > > > pls help me. > > > > regards, > > > > kelum
------------------------ 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/