Hi Arthy,
I suppos you should do it with script.
Frist of all, you should get all the link description doing something like
for (i=0; i< linkMaxNumber; i++)
{
myLink=document.getElementById("link_"+i)
... then navigate into your link using myLink.childNodes.item(j)
which can give you all the child of your link (see circle treatment
following).
... and then get the id of the circles that are to be connected
// then get the data for drawing the lines
// Suppose you've find that you need to connect circle10 and circle20
circle1=document.getElementById('10').childNodes.item(1) // in the
child nodes, the first one is the line break, then the second is
<circle> element
x1=circle1.getAttribute('cx')
y1=circle1.getAttribute('cy')
circle2=document.getElementById('20').childNodes.item(1)
x2=circle2.getAttribute('cx')
y2=circle2.getAttribute('cy')
//create the line element
myLine=document.createElement('line')
myLine.setAttribute('x1',x1)
myLine.setAttribute('x2',x2)
myLine.setAttribute('y1',y1)
myLine.setAttribute('y2',y2)
//add the new line to the other lines
connectors=document.getElementById('connectors')
connectors.appendChild(myLine)
}
Hope it helps
Jérôme
arthycharm a écrit :
>hai garry,
>first i would like to thank you for your immediate response.
>the following is the sample set of code created.
><g id ="34">
><circle cx="55" cy="30" r="10"
>fill="green">
><title>
>34
></title>
><desc>
>circle
></desc>
></circle>
></g>
><g id ="35>
><circle cx="55" cy="30" r="10"
>fill="green">
><title>
>35
></title>
><desc>
>circle
></desc>
></circle>
></g>
>simlarly i have created 15 circles .suppose if there is linkage
>connection as
>follows
>
>circle 1 to circle 10,15.
>circle 3 to circle 2,6,7.
>circle 5 to 11,12.
> in the similar sense the link details are available,based on these
>details i
>have to draw the line connection between the circles.
>
>
>this is how i have created some 200 number of circles,but unable to
>draw line
>between them based on the available link details.hope so iam a bit
>clearer with
>my problem.
>
>thanks & regards,
>arthy.
>
>
>
>
>
>-----
>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
>
>
>
>
>
>
>
>
--
-----------------------------
Jérôme TRICAND DE LA GOUTTE
Logatique
01 46 21 59 59
50 rue Marcel Dassault
92100 Boulogne-Billancourt
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/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/