Message-
From: svg-developers@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Erik Dahlström
Sent: 10 January 2008 13:07
To: svg-developers@yahoogroups.com
Subject: Re: [svg-developers] SVG countdown
On Sun, 06 Jan 2008 22:20:21 +0100, Julien Reichel
[EMAIL PROTECTED] wrote
] On
Behalf Of G. Wade Johnson
Sent: 09 December 2007 20:09
To: svg-developers@yahoogroups.com
Subject: Re: [svg-developers] SVG countdown
On Sun, 09 Dec 2007 17:38:54 -
boulle_remi [EMAIL PROTECTED] mailto:rboulle%40free.fr wrote
On Sun, 09 Dec 2007 17:38:54 -
boulle_remi [EMAIL PROTECTED] wrote:
Hi,
I wrote a simple SVG countdown. You can read it above.
It is okay from 5s to 0s, but the higher I start, the longer the code
is...
Is there a way, in SVG, to do that much more shorter than defining a
text element
Hi Remi,
you could make 10 symbols, and then cycle through them:
defs
symbol id=one
...
/symbol
symbol id=two
...
/defs
use xl:href=#one ...
animate attributeName=xl:href values=#three;#two;#one;#zero
begin=0s dur=40s.../
/use
use xl:href=#one ...
animate attributeName=xl:href
Hi,
Try:
var obj = document.getElementById(texte);
if(obj obj.firstChild) obj.firstChild.data = time;
Regrads,
Chris
From: svg-developers@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of
Rémi Boulle
Sent: Montag, 8. Oktober 2007 21:32
To: svg-developers@yahoogroups.com
Without looking at your code in great detail, Rémi, I see one suspicious
problem:
document.getElementById(texte).innerHTML = time;
the object with id=texte is in your SVG document, hence it has no innerHTML
(which only things in HTML would have)
instead it is a node with text node inside it:
6 matches
Mail list logo