Hi, G. Wade:
Thanks for your help. I changed one piece of code from id='txt' to id='txt1'.
But it doesn't work. The reason is that in the JavaScript program, there is
a piece of code saying 'getElementByID ('txt'). So only the code with id='txt'
would work, and there cannot be two id='txt'.
The URL is:
http://www.pinyinology.com/ontology/phonetic5.svg
If possible, please help more. Thanks again.
Fulio Pen
"G. Wade Johnson" <[EMAIL PROTECTED]> wrote:
On Mon, 14 Aug 2006 18:15:56 -0700 (PDT)
Fulio Pen <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Some time ago, members in this group helped me write a code for my research.
> Now I need to change it. Following is the URL of the page:
>
> http://www.pinyinology.com/ontology/phonetic5.html
>
> I tried to modify it, but failed. The code is rather complicated. I guess
> I didn't do it well on following excerpt of it. Your help is greatly
> appreciated.
>
> Fulio Pen
The obvious thing is that the 'id' attribute must be unique. So adding another
<text/> element with an id of 'txt' is invalid.
G. Wade
> _________________________________________
> <g>
> <title>Spelling</title>
> <circle cx="100" cy="100" r="45" stroke="black" stroke-width="2"
> fill="none"/>
>
> <text x='100' y='80' fill="black" font-size="15"
> text-anchor="middle">spelling</text>
>
> <!-- when the comment enclosure is removed, the code stops working.
> <text id="txt" x="100" y="105" fill="blue" pointer-events="none"
> font-size="25" font-weight="#600" text-anchor="middle">0</text>-->
> </g>
>
> <g>
> <title>sound</title>
> <circle cx="300" cy="100" r="45" stroke="black" stroke-width="2"
> fill="none"/><text x="300" y="80" fill="black" font-size="15"
> text-anchor="middle">sound</text>
>
> <text id="txt" x="300" y="110" fill="green" pointer-events="none"
> font-size="25" font-weight="#600" text-anchor="middle">0</text>
> </g>
>
>
>
>
> ---------------------------------
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
> starting at 1ยข/min.
>
> [Non-text portions of this message have been removed]
>
>
--
If you like laws and sausages, you should never watch either one being
made. -- Otto von Bismarck
---------------------------------
Do you Yahoo!?
Next-gen email? Have it all with the all-new Yahoo! Mail Beta.
[Non-text portions of this message have been removed]
-----
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/