凭窗远眺 发表于 2007-12-8 14:17

使颜色不断变换的特效[高老师代码]

请注意看字体颜色效果:
<FONT id=font1 style="FONT-SIZE: 60pt" face=华文新魏 color=#00FFFF>你好</FONT>
<?import namespace = t urn = "urn:schemas-microsoft-com:time" implementation = "#default#time2" declareNamespace />
<t:animateColor attributeName = "color" targetElement = "font1" values = "#00FF00;;#FFFF00;;#FF00FF;;#0000FF;" autoReverse = "true" dur = "12" repeatCount = "100">
</t:animateColor>

凭窗远眺 发表于 2007-12-8 14:28

<P align=left>代码: <BR><BR>&lt;FONT <FONT color=red>id=font1</FONT> style=\"FONT-SIZE: 60pt\" face=华文新魏 color=#00FFFF&gt;你好&lt;/FONT&gt;<BR>&lt;?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace /&gt;<BR>&lt;t:animateColor attributeName = \"color\" <FONT color=red>targetElement = \"font1\"</FONT> values = \"#00FF00;;#FFFF00;;#FF00FF;;#0000FF;\" autoReverse = \"true\" dur = \"12\" repeatCount = \"100\"&gt;<BR>&lt;/t:animateColor&gt; <BR><BR>说明: <BR><BR>&lt;?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace /&gt;<BR>指定以下显示的语言. <BR><BR>t:animateColor <BR>颜色的变化标签. <BR><BR>attributeName = \"color\" <BR>确定要变化的属性,这里是文字颜色,可以指定边框颜色属性或背景颜色属性等. <BR><BR><FONT color=red>targetElement = \"font1\" <BR></FONT>确定要变化的目标,这里就指向文字标签里的<FONT color=red>id=font1</FONT>,注意:这两个值<FONT color=red>font1</FONT>必须一致,但随便写什么都可以,是个记号而已.再注意:一个叶面里有多个变化时,这个记号必须不一样,不然都不能显示变化了. <BR><BR>values = \"#00FF00;;#FFFF00;;#FF00FF;;#0000FF;\" <BR>变化的颜色,随便填几个,每个间用分号;隔开.变化顺序从左到右,再从右到左渐变. <BR><BR>autoReverse = \"true\" <BR>变化方式循环,false不循环. <BR><BR>dur = \"12\" <BR>变化一次的时间(秒) <BR><BR>repeatCount = \"100\" 变化次数. <BR><BR></P>

凭窗远眺 发表于 2007-12-8 14:30

背景颜色变化:
<table id=gaoss33 width=\"250\" height=\"120\" border=\"8\" cellspacing=\"10\" cellpadding=\"10\" align=\"center\" valign=\"middle\" bgcolor=\"#55632F\" bordercolor=#6b8e23><tr><td></td></tr></table>
<?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace />
<t:animateColor attributeName = \"bgcolor\" targetElement = \"gaoss33\" values = \"#00FF00;;#FFFF00;;#FF00FF;;#0000FF;\" autoReverse = \"true\" dur = \"6\" repeatCount = \"100\">
</t:animateColor>

凭窗远眺 发表于 2007-12-8 14:31

<P align=left>代码: <BR><BR>&lt;table<FONT color=red> id=gaoss33</FONT> width=\"250\" height=\"120\" border=\"8\" cellspacing=\"10\" cellpadding=\"10\" align=\"center\" valign=\"middle\" <FONT color=#ff00ff>bgcolor</FONT>=\"#55632F\" bordercolor=#6b8e23&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; <BR>&lt;?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace /&gt;<BR>&lt;t:animateColor attributeName =<FONT color=#ff00ff> \"bgcolor\"</FONT> <FONT color=red>targetElement = \"gaoss33\"</FONT> values = \"#00FF00;;#FFFF00;;#FF00FF;;#0000FF;\" autoReverse = \"true\" dur = \"6\" repeatCount = \"100\"&gt;<BR>&lt;/t:animateColor&gt; <BR></P>

凭窗远眺 发表于 2007-12-8 14:33

边框颜色变化:
<table id=gao width=\"250\" height=\"120\" border=\"8\" cellspacing=\"10\" cellpadding=\"10\" align=\"center\" valign=\"middle\" bgcolor=\"#55632F\" bordercolor=#6b8e23><tr><td></td></tr></table>
<?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace />
<t:animateColor attributeName = \"bordercolor\" targetElement = \"gao\" values = \"#00FF00;;#FFFF00;;#FF00FF;;#0000FF;\" autoReverse = \"true\" dur = \"3\" repeatCount = \"100\">
</t:animateColor>

凭窗远眺 发表于 2007-12-8 14:35

<P align=left>代码: <BR><BR>&lt;table <FONT color=red>id=gao</FONT> width=\"250\" height=\"120\" border=\"8\" cellspacing=\"10\" cellpadding=\"10\" align=\"center\" valign=\"middle\" bgcolor=\"#55632F\" <FONT color=#ff00ff>bordercolor</FONT>=#6b8e23&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;<BR>&lt;?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace /&gt;<BR>&lt;t:animateColor attributeName = \"<FONT color=#ff00ff>bordercolor</FONT>\" <FONT color=red>targetElement = \"gao\"</FONT> values = \"#00FF00;;#FFFF00;;#FF00FF;;#0000FF;\" autoReverse = \"true\" dur = \"3\" repeatCount = \"100\"&gt;<BR>&lt;/t:animateColor&gt; <BR></P>

清音王梓 发表于 2007-12-8 16:30

我也进来学一把!呵呵!

文子 发表于 2007-12-10 17:57

多谢管管,我又学到一招。<IMG src=\"http://xuancheng.music.topzj.com/images/smilies/default/handshake.gif\" border=0><IMG src=\"http://xuancheng.music.topzj.com/images/smilies/default/lol.gif\" border=0>

egg110 发表于 2007-12-10 20:24

新人报道,学习来了

egg110 发表于 2007-12-10 20:27

好漂亮的字体
页: [1] 2 3 4 5 6 7 8 9
查看完整版本: 使颜色不断变换的特效[高老师代码]