HTML+TIME学习笔记(三)
<P class=ft style="MARGIN: auto 0cm; TEXT-ALIGN: center" align=center><FONT face=宋体 color=#000000 size=3>第三课</FONT></P><P class=ft style="MARGIN: auto 0cm"><FONT size=3><FONT color=#000000><FONT face=宋体><SPAN lang=EN-US> </SPAN>上节讲了位置的变化,那这节我来讲下颜色的变化,其实动画也无外乎颜色位置形状的各种变化组合出各类效果罢了,主要看的还是个人的灵感吧。</FONT></FONT></FONT></P>
<P class=ft style="MARGIN: auto 0cm; TEXT-INDENT: 24pt"><FONT face=宋体 color=#000000 size=3>老规矩,先看例子:</FONT></P>
<P class=ft style="MARGIN: auto 0cm; TEXT-INDENT: 24pt"><SPAN lang=EN-US><SPAN lang=EN-US><SPAN lang=EN-US><FONT face=宋体 color=blue size=5><A href="http://roger01rao.ik8.com/htmlntime/jiaocheng/教程3.html"><SPAN lang=EN-US><SPAN lang=EN-US><SPAN lang=EN-US><FONT face=宋体 color=blue size=5>点击看效果</FONT></SPAN></SPAN></SPAN></A></FONT></SPAN></SPAN></SPAN></P>
<P class=ft style="MARGIN: auto 0cm"><FONT size=3><FONT color=#000000><FONT face=宋体><SPAN lang=EN-US> </SPAN>对了在这里我说一句,就是大家千万别复制代码了事<SPAN lang=EN-US>,</SPAN>一定要自己编写过才有印象,养成一个好习惯真的很重要。</FONT></FONT></FONT></P>
<P class=ft style="MARGIN: auto 0cm"><FONT size=3><FONT color=#000000><FONT face=宋体>代码<SPAN lang=EN-US>:</SPAN></FONT></FONT></FONT></P>
<P class=ft style="MARGIN: auto 0cm"><FONT size=3><FONT color=#000000><FONT face=宋体><SPAN lang=EN-US><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <BR><HTML XMLNS:t="urn:schemas-microsoft-com:time"><BR><HEAD><BR><META http-equiv="Content-Type" content="text/html; charset=gb2312"><BR><META http-equiv="Content-Style-Type" content="text/css"><BR><TITLE>黄莺语柳紫燕归梁</TITLE><BR><STYLE type="text/css"><BR><!-- <BR>.time{ behavior:url(#default#time); } <BR>--> <BR></STYLE> <BR><?IMPORT namespace="t" implementation="#default#time2"><BR></HEAD><BR><BODY></SPAN></FONT></FONT></FONT></P>
<P class=ft style="MARGIN: auto 0cm"><FONT size=3><FONT color=#000000><FONT face=宋体><SPAN lang=EN-US><p id="b" ><b><font size=14 face=华文琥珀>欢迎光临“黄莺语柳紫燕归梁”的空间!</font></b></P><BR> <BR><<FONT color=red>t:animateColor</FONT> id="color1" targetElement="b" <FONT color=red>attributeName</FONT>="color" to="red" begin="1" dur="5" fill="hold"/></SPAN></FONT></FONT></FONT></P>
<P class=ft style="MARGIN: auto 0cm"><FONT size=3><FONT color=#000000><FONT face=宋体><SPAN lang=EN-US><p id="c" ><b><font size=14 face=华文琥珀 >欢迎光临“黄莺语柳紫燕归梁”的空间!</font></b></P><BR> <BR><<FONT color=red>t:animateColor</FONT> id="color2" targetElement="c" <FONT color=red>attributeName</FONT>="color" to="blue" begin="1" dur="5"/></SPAN></FONT></FONT></FONT></P>
<P class=ft style="MARGIN: auto 0cm"><FONT size=3><FONT color=#000000><FONT face=宋体><SPAN lang=EN-US><p id="d" ><b><font size=14 face=华文琥珀>欢迎光临“黄莺语柳紫燕归梁”的空间!</font></b></P><BR> <BR><<FONT color=red>t:animateColor</FONT> id="color2" targetElement="d" <FONT color=red>attributeName</FONT>="color" to="green" begin="1" dur="5" <FONT color=red>autoreverse</FONT>="true"/></SPAN></FONT></FONT></FONT></P>
<P class=ft style="MARGIN: auto 0cm"><FONT size=3><FONT color=#000000><FONT face=宋体><SPAN lang=EN-US></BODY><BR></HTML></SPAN></FONT></FONT></FONT></P><FONT color=#000000><SPAN style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">为了让大家看的清楚些,我把字体设成华文琥珀,字体设成14号,大家可以看到有</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">3</SPAN><SPAN style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">个效果:</SPAN><SPAN style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">一个是字体逐渐显示为红色然后固定为红色;</SPAN><SPAN style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">一个是显示为蓝色后然后恢复成原来的原色;</SPAN><SPAN style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">最后一个是变为绿色后逐渐退回原来的颜色。</SPAN><SPAN style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">其实三个效果也就多了红色部分部分的代码:</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><SPAN class=style6><t:animatecolor />,</SPAN></SPAN><SPAN style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">标记连续性地变化文字或者背景的颜色;</SPAN><SPAN class=style6><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">attributeName </SPAN></SPAN><SPAN style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">表示的是属性名字,</SPAN><SPAN style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">譬如这里是</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">color;</SPAN><SPAN class=style6><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">autoreverse </SPAN></SPAN><SPAN style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">表示自动回转</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">,</SPAN><SPAN style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">如这里产生绿色再回转到黑色的效果。</SPAN></FONT>
[ 本帖最后由 roger01rao 于 2008-8-7 11:52 编辑 ] 谢谢LZ的好东西,我收藏了 不錯..學習了.謝謝分享 继续跟踪学习。 <P>多个变色,写成什么代码呢,不知道这样写对吗?<BR><FONT color=blue><HTML XMLNS:t=\"urn:schemas-microsoft-com:time\"><BR><HEAD><BR><META http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"><BR><META http-equiv=\"Content-Style-Type\" content=\"text/css\"><BR><TITLE>黄莺语柳紫燕归梁</TITLE><BR><STYLE type=\"text/css\"><BR><!-- <BR>.time{ behavior:url(#default#time2); } <BR>--> <BR></STYLE> <BR><?IMPORT namespace=\"t\" implementation=\"#default#time2\"><BR></HEAD><BR><BODY><BR><p id=\"c\" ><b><font size=14 face=华文琥珀 >欢迎光临“黄莺语柳紫燕归梁”的空间!</font></b></P><BR><t:animateColor id=\"color2\" targetElement=\"c\" attributeName=\"color\" to=\"blue\" begin=\"1\" dur=\"5\"/><BR><t:animateColor id=\"color3\" targetElement=\"c\" attributeName=\"color\" to=\"green\" begin=\"color2+5\" dur=\"5\"/><BR></BODY><BR></HTML></FONT></P>
<P><FONT color=blue></FONT> </P> 对不对,你可以自己测试啊!多颜色的我会在以后发出来。 虽然偶不懂,再来支持下,辛苦 跟踪学习了~~谢谢LZ~~ 继续跟踪学习
谢谢!!! 请教老师,这个fill=\"hold\"/>这个代码是说明的吗?
页:
[1]
2