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><!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#time2); } <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><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;"><BR><<FONT color=red>t:animate</FONT> id="large1" targetElement="t1" attributeName="width" from="0" to="500" begin="1" dur="3" fill="hold" /><BR><<FONT color=red>t:animate</FONT> id="large2" targetElement="t1" attributeName="height" from="0" to="398" begin="large1.begin" dur="3" 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><BR></BODY><BR></HTML><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><t:animate/></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> 等有时间来交作业! 我先学习,然后交作业。 <P>交作业</P>
<P><!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#time2); } <BR>--> <BR></STYLE> <BR><?IMPORT namespace=\"t\" implementation=\"#default#time2\"><BR></HEAD> <BR><BODY> <BR><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;\"><BR><t:animate id=\"large1\" targetElement=\"t1\" attributeName=\"width\" from=\"0\" to=\"500\" begin=\"1\" dur=\"3\" fill=\"hold\" /><BR><t:animate id=\"large2\" targetElement=\"t1\" attributeName=\"height\" from=\"0\" to=\"398\" begin=\"large1.begin\" dur=\"3\" fill=\"hold\" /><BR></BODY><BR></HTML></P>
<P><BR> </P> 试验了作业好象图片停留时间短了点,位置不够居中,麻烦老师看看需要修改什么? 先学习!!!!!!!! 留个脚印,有时间来学习 <P><IMG id=t1 style=\"LEFT: 500px; WIDTH: 0px; POSITION: absolute; TOP: 398px; HEIGHT: 0px\" src=\"http://roger01rao.ik8.com/htmlntime/jiaocheng/05a.jpg\"> <!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#time2); } <BR>--> <BR></STYLE> <BR><?IMPORT namespace=\"t\" implementation=\"#default#time2\"><BR></HEAD> <BR><BODY> </P>
<P><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;\"><BR><t:animate id=\"large1\" targetElement=\"t1\" attributeName=\"width\" from=\"0\" to=\"500\" begin=\"1\" dur=\"3\" fill=\"hold\" /><BR><t:animate id=\"large2\" targetElement=\"t1\" attributeName=\"height\" from=\"0\" to=\"398\" begin=\"large1.begin\" dur=\"3\" fill=\"hold\" </P>
<P>/></P>
<P><BR></BODY><BR></HTML></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 编辑 ] 请教一下楼主哦,为什么我做成代码它还在上面出现?是我做的?
回复 1# 的帖子
先学学,好象很难,学会了交作业
页:
[1]
2