鸟的飞翔
上传素材[ 本帖最后由 gaoss33 于 2009-4-15 07:18 编辑 ]
效果
<DIV style=\"position:relative; top:130px; left:-100px; width:800px; height:600px;overflow: hidden;\"><?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace />
<IMG style=\"LEFT: 0px; POSITION: absolute; TOP: 0px\" src=\"http://www.yinhuabbs.cn/attachments/month_0904/20090415_425b94bcca14d87397d1j1WHUdecBnzi.jpg\">
<IMG id=xt1 style=\"LEFT: 13px; POSITION: absolute; TOP: 180px\" src=\"http://www.yinhuabbs.cn/attachments/month_0904/20090415_a39ae521fc7aa21b19cdLTM8jw50A06O.gif\" begin = \"\" end = \"\">
<t:animatemotion id=kyokusen1 path = \"m 0 0 c 236 -194 500 185 785 -190\" targetElement = \"xt1\" autoReverse = \"false\" begin = \"0\" dur = \"10\" fill = \"hold\" repeatCount = \"50\">
</t:animatemotion>
<t:transitionFilter from = \"0\" targetElement = \"xt1\" to = \"1\" type = \"fade\" subType = \"crossFade\" mode = \"out\" autoReverse = \"true\" dur = \"3\" repeatCount = \"indefinite\">
</t:transitionFilter>
</DIV>
[ 本帖最后由 gaoss33 于 2009-4-15 07:24 编辑 ]
代码
<P><DIV style=\"position:relative; top:130px; left:-100px; width:800px; height:600px;overflow: hidden;\"></P><P><?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace /></P>
<P><--天空背景图--></P>
<P><IMG style=\"LEFT: 0px; POSITION: absolute; TOP: 0px\" src=\"http://www.yinhuabbs.cn/attachments/month_0904/20090415_425b94bcca14d87397d1j1WHUdecBnzi.jpg\"></P>
<P><--gif鸟--><BR><IMG id=xt1 style=\"LEFT: 13px; POSITION: absolute; TOP: 180px\" src=\"http://www.yinhuabbs.cn/attachments/month_0904/20090415_a39ae521fc7aa21b19cdLTM8jw50A06O.gif\" begin = \"\" end = \"\"></P>
<P><!--运动途径--><BR><t:animatemotion id=kyokusen1 path = \"m 0 0 c 236 -194 500 185 785 -190\" targetElement = \"xt1\" autoReverse = \"false\" begin = \"0\" dur = \"10\" fill = \"hold\" repeatCount = \"50\"><BR></t:animatemotion></P>
<P><!--渐隐--><BR><t:transitionFilter from = \"0\" targetElement = \"xt1\" to = \"1\" type = \"fade\" subType = \"crossFade\" mode = \"out\" autoReverse = \"true\" dur = \"3\" repeatCount = \"indefinite\"><BR></t:transitionFilter></P>
<P></DIV></P>
<P> </P>
<P><STRONG><FONT color=#ff0000 size=6>注意:同叶面显示一定要改变 id=\"xt1\" 的值:xt1,同时改变下面两个targetElement = \"xt1\"的值同id一致。</FONT><BR></STRONG></P>
[ 本帖最后由 gaoss33 于 2009-4-15 07:37 编辑 ] <H2>关键数据</H2>
<DIV class=t_msgfont>path = \"m 0 0 c 236 -194 500 185 785 -190\" <BR>飞翔途径,每两组数字定一个坐标点,连接点组成一条弧曲线.<BR><BR>dur = \"10\"<BR>飞一次所需时间,单位\"秒\"<BR><BR>repeatCount = \"50\"<BR>飞翔次数:50次</DIV>
<DIV class=t_msgfont> indefinite (不定)为无数次)<BR><BR>下面那个是渐隐代码<BR>dur = \"3\"<BR>每3秒隐一次.<BR><BR>还可加上变小,变大代码</DIV>
<DIV class=t_msgfont> </DIV>
<DIV class=t_msgfont> </DIV>
<DIV class=t_msgfont> </DIV>
<DIV class=t_msgfont> </DIV>
[ 本帖最后由 gaoss33 于 2008-8-26 20:48 编辑 ] 学习了谢谢楼主分享啊 很有意思的代码,这样制作天空中飞翔的雄鹰简单多了。谢谢楼主。 试一下过瘾
<DIV style=\"position:relative; top:130px; left:-100px; width:800px; height:600px;overflow: hidden;\">
<?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace />
<IMG style=\"LEFT: 0px; POSITION: absolute; TOP: 0px\" src=\"http://www.yinhuabbs.cn/attachments/month_0807/20080714_519e8cc02f32203b95ad6a0yjIn3YuXl.jpg\">
<IMG id=xt2 style=\"LEFT: 13px; POSITION: absolute; TOP: 180px\" src=\"http://www.yinhuabbs.cn/attachments/month_0807/20080714_71a28884974e65d6f019NUf8mbnCephC.gif\" begin = \"\" end = \"\">
<!--运动途径-->
<t:animatemotion id=kyokusen1 path = \"m 0 0 c 236 -194 500 185 785 -190\" targetElement = \"xt2\" autoReverse = \"false\" begin = \"0\" dur = \"10\" fill = \"hold\" repeatCount = \"50\">
</t:animatemotion>
<!--渐隐-->
<t:transitionFilter from = \"0\" targetElement = \"xt2\" to = \"1\" type = \"fade\" subType = \"crossFade\" mode = \"out\" autoReverse = \"true\" dur = \"3\" repeatCount = \"indefinite\">
</t:transitionFilter>
</DIV>
[ 本帖最后由 gaoss33 于 2008-7-14 07:29 编辑 ] 呵呵,我的老鹰怎么飞不走 原帖由 一剑飘香红 于 2008-7-14 07:05 发表 static/image/common/back.gif
呵呵,我的老鹰怎么飞不走
3楼底下有红色警告语 谢谢楼上的,我再来试一下
<DIV style=\"position:relative; top:130px; left:-100px; width:800px; height:600px;overflow: hidden;\">
<?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace />
<IMG style=\"LEFT: 0px; POSITION: absolute; TOP: 0px\" src=\"http://www.yinhuabbs.cn/attachments/month_0807/20080714_519e8cc02f32203b95ad6a0yjIn3YuXl.jpg\">
<IMG id=xt3 style=\"LEFT: 13px; POSITION: absolute; TOP: 180px\" src=\"http://www.yinhuabbs.cn/attachments/month_0807/20080714_71a28884974e65d6f019NUf8mbnCephC.gif\" begin = \"\" end = \"\">
<!--运动途径-->
<t:animatemotion id=kyokusen1 path = \"m 0 0 c 236 -194 500 185 785 -190\" targetElement = \"xt3\" autoReverse = \"false\" begin = \"0\" dur = \"10\" fill = \"hold\" repeatCount = \"50\">
</t:animatemotion>
<!--渐隐-->
<t:transitionFilter from = \"0\" targetElement = \"xt3\" to = \"1\" type = \"fade\" subType = \"crossFade\" mode = \"out\" autoReverse = \"true\" dur = \"3\" repeatCount = \"indefinite\">
</t:transitionFilter>
</DIV>