Topic: playing around with SVG... (Page 1 of 1) |
|
|---|---|
|
Bipolar (III) Inmate From: |
posted 11-02-2006 11:33
Hi, have any of you guys got hold of a relative new phone that supports SVG format? I have, but I haven't been able to get the script part to work? code: <?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 xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%">
<script type="text/ecmascript">
function foo(e){
var SVGDoc = document.getElementById("txt").firstChild;
SVGDoc.nodeValue = "Hello World"
}
</script>
<circle id="sirkel" cx="200" cy="200" r="30" style="fill:rgb(200,100,50)" onmouseover="foo(evt)"/>
<text id="txt" x="10" y="10">Hello</text>
</svg>
|
|
Paranoid (IV) Inmate From: Dublin, Ireland |
posted 11-04-2006 18:24
Does you nokia have cursor for onmouseover events? Does it show the circle? Just curious dont have a fancy phone. |
|
Bipolar (III) Inmate From: |
posted 11-06-2006 10:52
hi Hugh. |
|
Paranoid (IV) Inmate From: USA |
posted 11-07-2006 03:31
It's possible that the SVG implementation doesn't support the ECMAScript standard...? |
|
Bipolar (III) Inmate From: |
posted 11-08-2006 09:39
yes, it certainly is, infact in the SVG-T specs it states that SVG-T doesn't support the script tag. However, I was hoping that nokia had added some support anyway.... |