使颜色不断变换的特效[高老师代码]
请注意看字体颜色效果:<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> <P align=left>代码: <BR><BR><FONT <FONT color=red>id=font1</FONT> style=\"FONT-SIZE: 60pt\" face=华文新魏 color=#00FFFF>你好</FONT><BR><?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace /><BR><t:animateColor attributeName = \"color\" <FONT color=red>targetElement = \"font1\"</FONT> values = \"#00FF00;;#FFFF00;;#FF00FF;;#0000FF;\" autoReverse = \"true\" dur = \"12\" repeatCount = \"100\"><BR></t:animateColor> <BR><BR>说明: <BR><BR><?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace /><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> 背景颜色变化:
<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> <P align=left>代码: <BR><BR><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><tr><td></td></tr></table> <BR><?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace /><BR><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\"><BR></t:animateColor> <BR></P> 边框颜色变化:
<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> <P align=left>代码: <BR><BR><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><tr><td></td></tr></table><BR><?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace /><BR><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\"><BR></t:animateColor> <BR></P> 我也进来学一把!呵呵! 多谢管管,我又学到一招。<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> 新人报道,学习来了 好漂亮的字体