"Thomas Steiner" wrote:

[]
> so I
> searched and found the onload() method which makes my circle bigger
> from the start
[]

> <?xml version="1.0"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
>   "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
> <svg version="1.1" xmlns="http://www.w3.org/2000/svg";
onload="start(evt)" >
>   <script type="text/ecmascript">
>   <![CDATA[
>     var GLOBAL=40;
>     function start(evt) {
>       var round = document.getElementById("myobject");
>       round.setAttributeNS(null, 'r', GLOBAL);
>     }
>   ]]>
>   </script>
>   <circle cx="75" cy="75" r="4" fill="blue" id="myobject" />
> </svg>
> 

That seems to work.

> Will this file only be viewable in a browser (like Firefox or Opera)
> or will it be more portable? Any hints in this direction are very
welcome!

You need an environment that is capable of interpreting the file,
running the script, and rendering the SVG. Browsers are mostly
designed to do this, but I don't know much else that is. Batik,
perhaps, but I know very little about that. On the other hand, 

> Is it possible to set the value of GLOBAL in the rendered SVG or or
> do I have to change it in the "source code"?

You have to think of the SVG as a document. It is basically static
(even if it contains SMIL animation). But, because it is a document
structured in XML, it can be manipulated by a suitable script.



------------------------------------

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

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