贴FLASH-动画图片的方法
加插FLASH-动画图片有各种方式:①直接在页面上插入。②在一张图片上加叠1或多个FLASH。③在页面上任何地方定位加叠。网页上不宜加插太多FLASH,否则会影响网页的打开。
在页面上插入FLASH的代码模式:
<EMBED pluginspage=http://www.macromedia.com/go/getflashplayer src=“FLASH地址” width="宽度" height="高度" type=application/x-shockwave-flash wmode="transparent" quality="high">
在页面上插入FLASH的代码模式:
<EMBED pluginspage=http://www.macromedia.com/go/getflashplayer src=http://www./wode/flash/dongwu/lumi.swf width=500 height=400 type=application/x-shockwave-flash wmode="transparent" quality="high"> 显示效果:
在图片上插入FLASH的代码模式:
<TABLE borderColor=#127626 height=高度 cellSpacing=0 cellPadding=0 width=宽度 background="图片地址" border=0> <TR> <TD><EMBED pluginspage=http://www.macromedia.com/go/getflashplayer align=right src="FLASH地址" width="宽度" height="高度" type=application/x-shockwave-flash wmode="transparent" quality="high"> </TD></TR></TABLE>
在图片上插入FLASH的代码实例:
<TABLE borderColor=#127626 height=370 cellSpacing=0 cellPadding=0 width=700 background="http://image5.360doc.com/DownloadImg/2009/11/20/190486_9385647_9.jpg" border=3> <TR> <TD><EMBED pluginspage=http://www.macromedia.com/go/getflashplayer align=right src=http://imgfree.21cn.com/free/flash/59.swf width="700" height="370" type=application/x-shockwave-flash wmode="transparent" quality="high"> </TD></TR></TABLE> 显示效果:
在图片上插入2张FLASH的代码实例:
<TABLE borderColor=#127626 height=420 cellSpacing=0 cellPadding=0 width=700 background="http://image5.360doc.com/DownloadImg/2009/11/20/190486_9385647_10.jpg" border=3> <TR> <TD> <EMBED pluginspage=http://www.macromedia.com/go/getflashplayer align=right src=http://imgfree.21cn.com/free/flash/59.swf width="700" height="420" type=application/x-shockwave-flash wmode="transparent" quality="high"> <EMBED pluginspage=http://www.macromedia.com/go/getflashplayer align=right src=http://imgfree.21cn.com/free/flash/16.swf width="700" height="420" type=application/x-shockwave-flash wmode="transparent" quality="high"> </TD></TR></TABLE> 显示效果:
在图片上用绝对定位挂贴FLASH动画图片
在图片上可以同时插入多张FLASH,但只是在同一位置上加叠,如果要在不同位置显示,比如下面这张贴,在半空的鹿要调到下面草地,飞雁要调上一些,必须采用绝对定位挂贴的方法。
挂贴FLASH动画图片代码实例:
<DIV id=table1 style="LEFT: 20px; WIDTH: 800px; POSITION: relative; TOP: 40px"> <TABLE borderColor=#127626 height=500 cellSpacing=0 cellPadding=0 width=700 background="http://image5.360doc.com/DownloadImg/2009/11/20/190486_9385647_10.jpg" border=3> <TR> <TD> <EMBED style="LEFT:10px; WIDTH: 750px; POSITION: absolute; TOP: -60px; HEIGHT: 500px" align=center src=http://imgfree.21cn.com/free/flash/59.swf width=750 height=500 type=application/octet-stream ;; quality="high" wmode="transparent"></EMBED> <EMBED style="LEFT:10px; WIDTH: 750px; POSITION: absolute; TOP: 340px; HEIGHT: 200px" align=center src=http://www./wode/flash/dongwu/lumi.swf width=750 height=300 type=application/octet-stream ;; quality="high" wmode="transparent"></EMBED> </TD></TR></TABLE></DIV>
说明: ●<DIV id=table1 style=定义相对定位标签.关键语句:POSITION: relative. ●<EMBED style=贴FLAS标签行内套用样式表绝对定位语句.关键语句:POSITION: absolute. 显示效果:
相对定位与绝对定位的关系
贴FLAS的标签行内套用css样式表定位属性内容POSITION有两个属值,即relative相对定位和absolute绝对定位.有相对定位指令的标签是一种容框,是绝对定位必要的参照物在相对定位容框内,可以用很多有绝对定位的标签,挂贴各种内容.用绝对定位挂贴虽然也是一种加叠,但内容显示位置上下左右可以稠整.方法是设置LEFT水平起始参数和TOP垂直起始参数. 绝对定位的语句: style="LEFT:10px; WIDTH: 750px; POSITION: absolute; TOP: 50px; HEIGHT: 500px" 说明: ● Z-INDEX: 10px 是指与帖子左边的距离 。 ● WIDTH: 750px 是指定位的范围宽度。 ● TOP: 50px 指与帖子上边之间的距离。 ● height=500 是指定位的范围高度。 ● 750px 即750个像素点。 ● 绝对定位外部挂贴必须设置相对定位标签,否则插入内容可能在整张网页的别处显示。
绝对定位插入FLASH的代码实例:
<EMBED style="DISPLAY: block" pluginspage=http://www.macromedia.com/go/getflashplayer src=http://imgfree.21cn.com/free/flash/113.swf width=500 height=400 type=application/x-shockwave-flash quality="high" wmode="transparent"></EMBED> 显示效果: 由于垂直起始参数TOP: 150px,即距本页上边150px起显示紫红叶飘落.
在相对定位容框内绝对定位插入FLASH的代码实例:
<TABLE cellSpacing=1 cellPadding=1 width="80%" border=1> <TBODY> <TR> <TD><EMBED style="DISPLAY: block" pluginspage=http://www.macromedia.com/go/getflashplayer src=http://imgfree.21cn.com/free/flash/113.swf width=500 height=400 type=application/x-shockwave-flash quality="high" wmode="transparent"></EMBED> </TR></TBODY></TABLE>


ldm2124086 欢迎光临
ldm2124086BOLAG
|