bcastr.swf 制作类似csdn,flash 通用图片轮换播放器

来源:互联网 发布:mac地址是唯一的吗 编辑:程序博客网 时间:2024/05/19 19:33

在项目中文件

xml--bcastr.xml


<?xml version="1.0" encoding="utf-8" ?>
<bacaster autoPlayTime="3">
  <item item_url="images/01.jpg" link="Default.aspx">
  </item>
  <item item_url="images/02.jpg">
  </item>
  <item item_url="images/03.jpg"></item>
  <item item_url="images/04.gif"></item>
</bacaster>


link=""//这里为超链接了.

另外中项目中添加bcastr.swf文件,另外images文件下的图片自己设置.

在前台中添加下面代码即可实现flash通用图片转换器了.


    <object type="application/x-shockwave-flash" data="bcastr.swf?bcastr_xml_url=xml/bcastr.xml" width="900" height="190">
        <param name="movie" value="bcastr.swf?bcastr_xml_url=xml/bcastr.xml" />
        <param name="loop" value="true" />
        <param name="menu" value="false" />
        <param name="quality" value="best" />
        <param name="wmode" value="transparent" />
    </object>


 

好了,功能可以实现了!