W3C home > Mailing lists > Public > www-svg@w3.org > June 2006

IE6 Crashes with animatemotion

From: Alexandre Silva <alex@mat.ua.pt>
Date: Wed, 14 Jun 2006 16:30:36 +0100
To: <www-svg@w3.org>
Message-ID: <000901c68fc7$7c795c70$11b6a8c0@mat.ua.pt>
Hi,

 

I try to put animateMotion but sometimes the browser IE6 crashes :-(

What I need to change on the following source-code??

 

 

 

 

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:g="http://www.w3.org/2000/svg"
xmlns:m="http://www.w3.org/1998/Math/MathML">

            <HEAD>

                        <title>Visualizar Prova</title>

                        <object id="MathPlayer"
classid="clsid:32f66a20-7614-11d4-bd11-00104bd3f987" VIEWASTEXT></object>

                        <object id="AdobeSVG"
classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2" VIEWASTEXT></object>

                        <?import namespace="g" implementation="#AdobeSVG" ?>

                        <?import namespace="m" implementation="#MathPlayer"
?>      

            </HEAD>

            <body>

            <table height="100%" cellSpacing="0" cellPadding="0"
width="100%" border="0">

                                               <tr>

                                                           <td colSpan="3"
height="50%"></td>

                                               </tr>

                                               <tr>

                                                           <td> Considera a
experiência aleatória que consiste em rodar a roleta da figura e observar o
número do sector circular sobre o qual fica situado o ponteiro. Então
<m:math><m:mi>g</m:mi><m:mrow><m:mo>(</m:mo><m:mi>x</m:mi><m:mo>)</m:mo></m:
mrow><m:mo>=</m:mo><m:mi>f</m:mi><m:mrow><m:mo>(</m:mo><m:mi>x</m:mi><m:mo>)
</m:mo></m:mrow><m:mtext>&nbsp;</m:mtext><m:mo>-</m:mo><m:mtext>&nbsp;</m:mt
ext><m:mfrac><m:mrow><m:mn>5</m:mn></m:mrow><m:mrow><m:mn>2</m:mn></m:mrow><
/m:mfrac></m:math>

<g:svg  width="200px"  height="150px">

<g:defs>

<g:symbol id="figura" >

<g:desc>Gerado na classe figura</g:desc>

<g:g transform="matrix(10 0 0 -10 100 75)">

<g:circle  id="circulo" cx="0px"  cy="0px"  r="6px"  fill="palegreen"
stroke="purple"  stroke-width="0.2"  fill-opacity="1"  stroke-opacity="1"
filter="" />

 

<g:line  x1="0px"  y1="0px"  x2="6px"  y2="0px"  fill="none"
stroke="purple"  stroke-width="0.1"  fill-opacity="1"  stroke-opacity="1" />

 

<g:line  x1="0px"  y1="0px"  x2="4.2px"  y2="4.2px"  fill="none"
stroke="purple"  stroke-width="0.1"  fill-opacity="1"  stroke-opacity="1" />

 

<g:line  x1="0px"  y1="0px"  x2="0px"  y2="6px"  fill="none"
stroke="purple"  stroke-width="0.1"  fill-opacity="1"  stroke-opacity="1" />

 

<g:line  x1="0px"  y1="0px"  x2="-4.2px"  y2="4.2px"  fill="none"
stroke="purple"  stroke-width="0.1"  fill-opacity="1"  stroke-opacity="1" />

 

<g:line  x1="0px"  y1="0px"  x2="-6px"  y2="0px"  fill="none"
stroke="purple"  stroke-width="0.1"  fill-opacity="1"  stroke-opacity="1" />

 

<g:line  x1="0px"  y1="0px"  x2="-4.2px"  y2="-4.2px"  fill="none"
stroke="purple"  stroke-width="0.1"  fill-opacity="1"  stroke-opacity="1" />

 

<g:line  x1="0px"  y1="0px"  x2="0px"  y2="-6px"  fill="none"
stroke="purple"  stroke-width="0.1"  fill-opacity="1"  stroke-opacity="1" />

 

<g:line  x1="0px"  y1="0px"  x2="4.2px"  y2="-4.2px"  fill="none"
stroke="purple"  stroke-width="0.1"  fill-opacity="1"  stroke-opacity="1" />

 

<g:text  Style = "font-family:  Verdana ,times ,arial, Helvetica,
sans-serif;" transform="matrix(0.1 0 0 -0.1 0 0)" x="36.6px"  y="-12.2px"
font-size="14"  stroke-width="0.5" stroke="mediumblue"  fill="black"
>1</g:text>

<g:text  Style = "font-family:  Verdana ,times ,arial, Helvetica,
sans-serif;" transform="matrix(0.1 0 0 -0.1 0 0)" x="12.2px"  y="-36.6px"
font-size="14"  stroke-width="0.5" stroke="mediumblue"  fill="black"
>2</g:text>

<g:text  Style = "font-family:  Verdana ,times ,arial, Helvetica,
sans-serif;" transform="matrix(0.1 0 0 -0.1 0 0)" x="-22.2px"  y="-36.6px"
font-size="14"  stroke-width="0.5" stroke="mediumblue"  fill="black"
>3</g:text>

<g:text  Style = "font-family:  Verdana ,times ,arial, Helvetica,
sans-serif;" transform="matrix(0.1 0 0 -0.1 0 0)" x="-46.6px"  y="-12.2px"
font-size="14"  stroke-width="0.5" stroke="mediumblue"  fill="black"
>4</g:text>

<g:text  Style = "font-family:  Verdana ,times ,arial, Helvetica,
sans-serif;" transform="matrix(0.1 0 0 -0.1 0 0)" x="-46.6px"  y="22.2px"
font-size="14"  stroke-width="0.5" stroke="mediumblue"  fill="black"
>5</g:text>

<g:text  Style = "font-family:  Verdana ,times ,arial, Helvetica,
sans-serif;" transform="matrix(0.1 0 0 -0.1 0 0)" x="-22.2px"  y="46.6px"
font-size="14"  stroke-width="0.5" stroke="mediumblue"  fill="black"
>6</g:text>

<g:text  Style = "font-family:  Verdana ,times ,arial, Helvetica,
sans-serif;" transform="matrix(0.1 0 0 -0.1 0 0)" x="12.2px"  y="46.6px"
font-size="14"  stroke-width="0.5" stroke="mediumblue"  fill="black"
>7</g:text>

<g:text  Style = "font-family:  Verdana ,times ,arial, Helvetica,
sans-serif;" transform="matrix(0.1 0 0 -0.1 0 0)" x="36.6px"  y="22.2px"
font-size="14"  stroke-width="0.5" stroke="mediumblue"  fill="black"
>8</g:text>

</g:g>

</g:symbol>

<g:symbol id="circuito" >

<g:path d="M-8,-12.5 L8,-12.5 L 0,-30 z"

    fill="yellow" stroke-width="3"  >

<g:animate attributeName="stroke" attributeType="CSS" dur="2s"
repeatDur="indefinite" from="red" to="yellow"/><!-- Define o trajecto do
movimento -->

<g:animateMotion dur="10s" repeatCount="indefinite"

    path ="M 158,16 a83,83 0 1,0 0.1,0.1" rotate="auto" />

</g:path>

</g:symbol>

 

</g:defs>

<g:rect x="0" y="0" rx="10" width="200px" height="150px" stroke="#CCCCCC"
fill-opacity="1" fill="#FFFFCC" stroke-width="1" />

     <g:use x="0px" y="0px" xlink:href="#figura"/>

 

<g:use xlink:href="#circuito"/>

</g:svg></td>

                                               </tr>

                                   </table>

            </body>

</HTML>

 

 

Thanks,

 

Alex Silva

 
Received on Thursday, 15 June 2006 01:56:50 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:34 GMT