莺燕音画 发表于 2008-8-7 14:21

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"><FONT face=宋体 color=blue size=5><A href="http://roger01rao.ik8.com/htmlntime/jiaocheng/教程4.html"><FONT face=宋体 color=blue size=5>点击看效果</FONT></A></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>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt; <BR>&lt;HTML XMLNS:t="urn:schemas-microsoft-com:time"&gt;<BR>&lt;HEAD&gt;<BR>&lt;META http-equiv="Content-Type" content="text/html; charset=gb2312"&gt;<BR>&lt;META http-equiv="Content-Style-Type" content="text/css"&gt;<BR>&lt;TITLE&gt;黄莺语柳紫燕归梁&lt;/TITLE&gt;<BR>&lt;STYLE type="text/css"&gt;<BR>&lt;!-- <BR>.time{ behavior:url(#default#time2); } <BR>--&gt; <BR>&lt;/STYLE&gt; <BR>&lt;?IMPORT namespace="t" implementation="#default#time2"&gt;<BR>&lt;/HEAD&gt; <BR>&lt;BODY&gt; </SPAN></FONT></FONT></FONT></P>
<P class=ft style="MARGIN: auto 0cm"><FONT size=3><FONT color=#000000><FONT face=宋体><SPAN lang=EN-US>&lt;img id="t1" src="<A href="http://roger01rao.ik8.com/htmlntime/jiaocheng/05a.jpg">http://roger01rao.ik8.com/htmlntime/jiaocheng/05a.jpg</A>" style="width:0; height:0; position:absolute; left:0; top:0;"&gt;<BR>&lt;<FONT color=red>t:animate</FONT> id="large1" targetElement="t1" attributeName="width" from="0" to="500" begin="1" dur="3" fill="hold" /&gt;<BR>&lt;<FONT color=red>t:animate</FONT> id="large2" targetElement="t1" attributeName="height" from="0" to="398" begin="large1.begin" dur="3" fill="hold" /&gt;</SPAN></FONT></FONT></FONT></P>
<P class=ft style="MARGIN: auto 0cm"><FONT size=3><FONT color=#000000><FONT face=宋体><SPAN lang=EN-US><BR>&lt;/BODY&gt;<BR>&lt;/HTML&gt;<BR></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>效果描述<SPAN lang=EN-US>:</SPAN>就是让这个图片从<SPAN lang=EN-US>0.0</SPAN>位置逐渐变化到<SPAN lang=EN-US>500.398</SPAN>坐标。</FONT></FONT></FONT></P>
<P><FONT size=3><FONT color=#000000><FONT face=宋体><SPAN class=ft1><SPAN lang=EN-US>    </SPAN>这里与前面代码不同的无非就是</SPAN><SPAN class=style6><SPAN lang=EN-US>&lt;t:animate/&gt;</SPAN></SPAN><SPAN class=ft1>标记,这个标记是用来连续性变化图像大小的,其他属性前面都讲过了,这里只是重复应用罢了。</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>这里我给大家留个作业:这里的形状变化是从左上角开始到右下脚的,如何做到从中间逐渐放大到两边呢?<SPAN class=style7>希望大家能做这个练习,并发表在回复里。</SPAN></FONT></FONT></FONT></P>

雨后斜阳 发表于 2008-8-7 16:53

等有时间来交作业!

白雪皑皑 发表于 2008-8-7 17:57

我先学习,然后交作业。

快乐相随 发表于 2008-8-8 01:12

<P>交作业</P>
<P>&lt;!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"&gt; <BR>&lt;HTML XMLNS:t=\"urn:schemas-microsoft-com:time\"&gt;<BR>&lt;HEAD&gt;<BR>&lt;META http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"&gt;<BR>&lt;META http-equiv=\"Content-Style-Type\" content=\"text/css\"&gt;<BR>&lt;TITLE&gt;黄莺语柳紫燕归梁&lt;/TITLE&gt;<BR>&lt;STYLE type=\"text/css\"&gt;<BR>&lt;!-- <BR>.time{ behavior:url(#default#time2); } <BR>--&gt; <BR>&lt;/STYLE&gt; <BR>&lt;?IMPORT namespace=\"t\" implementation=\"#default#time2\"&gt;<BR>&lt;/HEAD&gt; <BR>&lt;BODY&gt; <BR>&lt;img id=\"t1\" src=\"<A href=\"http://roger01rao.ik8.com/htmlntime/jiaocheng/05a.jpg\">http://roger01rao.ik8.com/htmlntime/jiaocheng/05a.jpg</A>\" style=\"width:0; height:0; position:absolute; left:500; top:400;\"&gt;<BR>&lt;t:animate id=\"large1\" targetElement=\"t1\" attributeName=\"width\" from=\"0\" to=\"500\" begin=\"1\" dur=\"3\" fill=\"hold\" /&gt;<BR>&lt;t:animate id=\"large2\" targetElement=\"t1\" attributeName=\"height\" from=\"0\" to=\"398\" begin=\"large1.begin\" dur=\"3\" fill=\"hold\" /&gt;<BR>&lt;/BODY&gt;<BR>&lt;/HTML&gt;</P>
<P><BR> </P>

快乐相随 发表于 2008-8-8 01:18

试验了作业好象图片停留时间短了点,位置不够居中,麻烦老师看看需要修改什么?

ヤ;聆聽浪漫 发表于 2008-8-8 17:41

先学习!!!!!!!!

文子 发表于 2008-8-8 22:37

留个脚印,有时间来学习

水若寒 发表于 2008-10-2 22:10

<P><IMG id=t1 style=\"LEFT: 500px; WIDTH: 0px; POSITION: absolute; TOP: 398px; HEIGHT: 0px\" src=\"http://roger01rao.ik8.com/htmlntime/jiaocheng/05a.jpg\"> &lt;!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"&gt; <BR>&lt;HTML XMLNS:t=\"urn:schemas-microsoft-com:time\"&gt;<BR>&lt;HEAD&gt;<BR>&lt;META http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"&gt;<BR>&lt;META http-equiv=\"Content-Style-Type\" content=\"text/css\"&gt;<BR>&lt;TITLE&gt;水若寒来学习~&lt;/TITLE&gt;<BR>&lt;STYLE type=\"text/css\"&gt;<BR>&lt;!-- <BR>.time{ behavior:url(#default#time2); } <BR>--&gt; <BR>&lt;/STYLE&gt; <BR>&lt;?IMPORT namespace=\"t\" implementation=\"#default#time2\"&gt;<BR>&lt;/HEAD&gt; <BR>&lt;BODY&gt; </P>
<P>&lt;img id=\"t1\" src=\"<A href=\"http://roger01rao.ik8.com/htmlntime/jiaocheng/05a.jpg\">http://roger01rao.ik8.com/htmlntime/jiaocheng/05a.jpg</A>\" style=\"width:0; height:0; position:absolute; </P>
<P>left:500; top:398;\"&gt;<BR>&lt;t:animate id=\"large1\" targetElement=\"t1\" attributeName=\"width\" from=\"0\" to=\"500\" begin=\"1\" dur=\"3\" fill=\"hold\" /&gt;<BR>&lt;t:animate id=\"large2\" targetElement=\"t1\" attributeName=\"height\" from=\"0\" to=\"398\" begin=\"large1.begin\" dur=\"3\" fill=\"hold\" </P>
<P>/&gt;</P>
<P><BR>&lt;/BODY&gt;<BR>&lt;/HTML&gt;</P>
<P><BR><?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace /><t:animate id=large1 attributeName = \"width\" from = \"0\" targetElement = \"t1\" to = \"500\" begin = \"1\" dur = \"3\" ></t:animate><t:animate id=large2 attributeName = \"height\" from = \"0\" targetElement = \"t1\" to = \"398\" begin = \"large1.begin\" dur = \"3\" ></t:animate> </P>

[ 本帖最后由 水若寒 于 2008-10-2 22:15 编辑 ]

水若寒 发表于 2008-10-2 22:17

请教一下楼主哦,为什么我做成代码它还在上面出现?是我做的?

shjhw 发表于 2008-10-3 17:00

回复 1# 的帖子

先学学,好象很难,学会了交作业
页: [1] 2
查看完整版本: HTML+TIME学习笔记(四)