功夫世界第14天:FLASH的通用代码及应用

来源:百度文库 编辑:偶看新闻 时间:2024/04/28 19:22:48

一、Flash 的代码知识:

透明Flash代码:

http://ak.scr.imgfarm.com/3dan/md/b_elefun_1.swf width=550 height=400 type=application/x-shockwave-flash wmode="transparent" autostart="0" loop="0">

不透明Flash代码:

http://ak.scr.imgfarm.com/3dan/md/b_elefun_1.swf width=550 height=400 type=application/x-shockwave-flash loop="0" autostart="0" >

代码说明:

1、红色部分《 wmode="transparent" 》是决定flash透明的关键。有 wmode="transparent" ,flash就透明

2、蓝色部分是flash的地址,Flash必需是其文件后缀名为 .swf 结尾的。

3、width是宽,height是高,width=550 height=400 宽和高均可按需要调正。


二、多层Flash 的组合应用:

代码:

 

align=right src=http://imgfree.21cn.com/free/flash/67.swf width=550 height=400 type=application/x-shockwave-flash autostart="0" loop="0" wmode="transparent" >

align=right src=http://imgfree.21cn.com/free/flash/9.swf width=550 height=400 type=application/x-shockwave-flash autostart="0" loop="0" wmode="transparent" >

align=right src=http://imgfree.21cn.com/free/flash/51.swf width=550 height=400 type=application/x-shockwave-flash autostart="0" loop="0" wmode="transparent" >

代码说明:

1、上面是三层Flash重叠组合,要使Flash重叠,必须在代码中加align=right才能实现。