--- In [email protected], "Martin Honnen"
<[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "Kam-Hung Soh"
> <kamhung.soh@> wrote:
> 
> > Here's a Web page showing SVG-drawn analogue clocks animated by
> > Javascript.  
> > See: http://members.optusnet.com.au/~khsoh/000d.xhtml
> 
> As for writing CSS selectors to match elements in a certain namespace
> you can do e.g.
>   <style type="text/css">
>   /* declare the prefix svg for SVG namespace */
>   @namespace svg url(http://www.w3.org/2000/svg);
>   svg|circle { fill: green; }
>   </style>
> That is part of the CSS 3 specifications under development but Firefox
> 1.5 and Opera 9 preview implement that already as far as I understand.
> See <http://www.w3.org/TR/2005/WD-css3-selectors-20051215/>

Cool!  It would clean up the SVG tags.

> 
> > It's the simplest thing I could imagine that could not be
> > easily done using just XHTML + Javascript because it involves rotating
> > the hands of a clock.
> 
> (X)HTML + canvas + JavaScript can do that too :)
> <http://developer.mozilla.org/en/docs/Canvas_tutorial:Basic_animations>
> But text with numbers can currently not be drawn in a canvas.
>

Thanks for pointing me towards the canvas feature.  It looks like a
good programmatic way to do web vector graphics.  The first-person
shooter demonstration is impressive!

There's also an SVG ECMAScript binding as well:
http://www.w3.org/TR/SVG11/ecmascript-binding.html

I think it should be possible to write something like the following to
change a circle's radius, "c.r = 50", rather than the more verbose
"c.setAttribute('r', '50')".

More stuff to try when I have some spare time!

-- 
Kam-Hung Soh
http://kamhungsoh.blogspot.com - It Mostly Works
http://members.optusnet.com.au/~khsoh - Software That Mostly Works





-----
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/
 


Reply via email to