Hi Edith, if you use script to read out the id, you can put the event handler attribute on the group and use evt.currentTarget, which leads you directly to the group. evt.target leads you to the path triggering the event. Alternatively, as Martin suggests, you can use evt.target.parentNode which leads you also to the group.
See also our tutorial on event handling: http://www.carto.net/papers/svg/eventhandling/index.shtml Andreas --- In [email protected], "csorba_edith" <[EMAIL PROTECTED]> wrote: > > Hi, > I have a question about defining id's for multiple svg features. > I have quite a few paths, and I would like to group them and display > the same Id when I move the mouse over one of the features. I.e. > <g id="x"..> > <path ... > <path .... > <... > </g> > But it seems that it displays the id only if I directly define it for > each <path>, which would be too tidious for me. :( > how can I define for each path to use the ID of the group they belong too? > Thanks in advance. > And thanks for all the previous help. > This group is more than useful for beginners. > And I guess for the rest of you too. :) > Regards, > Csorba > ----- 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/

