以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 SVG/GML/VRML/X3D/XAML 』  (http://bbs.xml.org.cn/list.asp?boardid=21)
----  [求助]在SVG中怎样让事件循环?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=57827)


--  作者:fionagj
--  发布时间:1/8/2008 11:32:00 AM

--  [求助]在SVG中怎样让事件循环?
<text id="text" x="5" y="60" style="font-family:Verdana;font-size:24;">SVG is fun
<animateColor id="c0" attributeName="fill" attributeType="CSS" from="red" to="blue" begin="1s" dur="3s" repeatCount="indefinite"/>
<animateColor id="c1" attributeName="fill" attributeType="CSS" from="blue" to="yellow" begin="c0.end" dur="3s" />
<animateColor id="c2" attributeName="fill" attributeType="CSS" from="yellow" to="green" begin="c1.end" dur="3s" /></text>

我想让文字一直在red-blue-yellow-green-red这样变化
但是上面的代码明显不行

完全感谢大侠们的相助~~~


--  作者:fionagj
--  发布时间:1/9/2008 9:23:00 PM

--  
求助
--  作者:fionagj
--  发布时间:1/10/2008 8:39:00 PM

--  
?
--  作者:enyaxp
--  发布时间:1/12/2008 7:39:00 PM

--  
颜色属性变化步长没有设,这样出来的效果是渐变的,需要设'by'中的值为前后两颜色值的差值。
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
62.012ms